Added playable level, playable character, and some grass tiles

just for the spice of it and such
but they are not game-worthy yet
still updating that soon
main
tihgs 2025-06-19 16:13:39 +08:00
parent 06c26e43ce
commit 2da13d1360
Signed by: tihgs
GPG Key ID: 4E80959CDE5EDCA0
10 changed files with 212 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Grass Block.png-8022a88180c12fb04ecdb9887b946c35.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Images/Grass Block.png"
dest_files=[ "res://.import/Grass Block.png-8022a88180c12fb04ecdb9887b946c35.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Images/tiles.res 100644

Binary file not shown.

BIN
PLV88 Fire0000.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Grass Block.png-9d0101c1f16bc41410b57efdbe1a035e.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://char/Images/Grass Block.png"
dest_files=[ "res://.import/Grass Block.png-9d0101c1f16bc41410b57efdbe1a035e.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

19
char/PLV.tscn 100644
View File

@ -0,0 +1,19 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://char/char.gd" type="Script" id=1]
[ext_resource path="res://PLV88 Fire0000.png" type="Texture" id=2]
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 40.5, 40 )
[node name="KinematicBody2D" type="KinematicBody2D"]
position = Vector2( -33, -32 )
script = ExtResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 42, 18 )
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 29.5, 30 )
shape = SubResource( 3 )

25
char/char.gd 100644
View File

@ -0,0 +1,25 @@
extends KinematicBody2D
const UP = Vector2(0, -1)
const GRAVITY = 20
const SPEED = 200
const JUMP_HEIGHT = -550
var motion = Vector2()
func _physics_process(delta):
motion.y += GRAVITY
if Input.is_action_pressed("ui_right"):
$Sprite.flip_h = false
motion.x = SPEED
elif Input.is_action_pressed("ui_left"):
$Sprite.flip_h = true
motion.x = -SPEED
else:
motion.x = 0
if is_on_floor():
if Input.is_action_pressed("ui_up"):
motion.y = JUMP_HEIGHT
motion = move_and_slide(motion, UP)
pass

98
level_juan.tscn 100644
View File

@ -0,0 +1,98 @@
[gd_scene load_steps=10 format=2]
[ext_resource path="res://Images/Grass Block.png" type="Texture" id=1]
[ext_resource path="res://char/PLV.tscn" type="PackedScene" id=2]
[ext_resource path="res://main_menu.gd" type="Script" id=3]
[ext_resource path="res://Fonts/Arimo-Bold.ttf" type="DynamicFontData" id=4]
[sub_resource type="ConvexPolygonShape2D" id=2]
points = PoolVector2Array( 0, 0, 112, 0.609558, 111.528, 65.7137, 0, 66 )
[sub_resource type="TileSet" id=1]
0/name = "Grass Block.png 0"
0/texture = ExtResource( 1 )
0/tex_offset = Vector2( 0, 0 )
0/modulate = Color( 1, 1, 1, 1 )
0/region = Rect2( 0, 0, 112, 66 )
0/tile_mode = 0
0/occluder_offset = Vector2( 0, 0 )
0/navigation_offset = Vector2( 0, 0 )
0/shape_offset = Vector2( 0, 0 )
0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
0/shape = SubResource( 2 )
0/shape_one_way = false
0/shape_one_way_margin = 1.0
0/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 2 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
} ]
0/z_index = 0
[sub_resource type="DynamicFont" id=3]
size = 23
font_data = ExtResource( 4 )
[sub_resource type="DynamicFont" id=4]
size = 23
font_data = ExtResource( 4 )
[sub_resource type="DynamicFont" id=5]
size = 28
font_data = ExtResource( 4 )
[node name="Node2D" type="Node2D"]
script = ExtResource( 3 )
[node name="TileMap" type="TileMap" parent="."]
tile_set = SubResource( 1 )
show_collision = true
format = 1
tile_data = PoolIntArray( 393225, 536870912, 0, 458759, 536870912, 0, 458760, 536870912, 0, 458761, 536870912, 0, 458762, 536870912, 0, 458763, 536870912, 0, 458764, 536870912, 0, 458765, 536870912, 0, 458766, 536870912, 0, 524292, 536870912, 0, 524293, 536870912, 0, 524294, 536870912, 0, 524295, 536870912, 0, 524296, 536870912, 0, 524297, 536870912, 0, 524298, 536870912, 0, 524299, 536870912, 0, 524300, 536870912, 0, 524301, 536870912, 0, 524302, 536870912, 0, 589824, 536870912, 0, 589825, 536870912, 0, 589826, 536870912, 0, 589827, 536870912, 0, 589828, 536870912, 0, 589829, 536870912, 0, 589830, 536870912, 0, 589831, 536870912, 0, 589832, 536870912, 0, 589833, 536870912, 0, 589834, 536870912, 0, 589835, 536870912, 0, 589836, 536870912, 0, 589837, 536870912, 0, 589838, 536870912, 0, 589839, 536870912, 0 )
[node name="KinematicBody2D" parent="." instance=ExtResource( 2 )]
position = Vector2( 102, 414 )
[node name="Button" type="Button" parent="."]
margin_left = 53.0
margin_top = 18.0
margin_right = 130.0
margin_bottom = 59.0
text = "| |"
[node name="WindowDialog" type="WindowDialog" parent="."]
margin_left = 293.0
margin_top = 190.0
margin_right = 750.0
margin_bottom = 369.0
window_title = "Pause a sec"
[node name="Button2" type="Button" parent="WindowDialog"]
margin_left = 51.0
margin_top = 128.0
margin_right = 128.0
margin_bottom = 169.0
custom_fonts/font = SubResource( 3 )
text = "Yes"
[node name="Button3" type="Button" parent="WindowDialog"]
margin_left = 309.0
margin_top = 128.0
margin_right = 386.0
margin_bottom = 169.0
custom_fonts/font = SubResource( 4 )
text = "No"
[node name="RichTextLabel" type="RichTextLabel" parent="WindowDialog"]
margin_left = 51.0
margin_top = 30.0
margin_right = 418.0
margin_bottom = 104.0
custom_fonts/normal_font = SubResource( 5 )
text = "Are you sure you wanna leave?"
[connection signal="pressed" from="Button" to="." method="_on_Popup_pressed"]
[connection signal="pressed" from="WindowDialog/Button2" to="." method="_on_Back_pressed"]
[connection signal="pressed" from="WindowDialog/Button3" to="." method="_on_Nope_pressed"]