prep for week 4 includes tileset tilemap terrain parallax2d

This commit is contained in:
OddlyTimbot 2026-03-23 17:24:23 -04:00
parent e66b95c1f1
commit d4eaf7ed39
17 changed files with 440 additions and 15 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 568 B

View File

@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cljdn8xafgbr3"
path="res://.godot/imported/bgcolor.png-e2c7f69bed4e086fc6803aa99b5afd90.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/environment/bg/bgcolor.png"
dest_files=["res://.godot/imported/bgcolor.png-e2c7f69bed4e086fc6803aa99b5afd90.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bci2ejdugybxi"
path="res://.godot/imported/foreground.png-c487090c461fdde2851cfe897d5ae0df.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/environment/bg/foreground.png"
dest_files=["res://.godot/imported/foreground.png-c487090c461fdde2851cfe897d5ae0df.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dvj4b1ku3fdwa"
path="res://.godot/imported/midground.png-395e3b40bd65c312dc5fc7afb2b9bcda.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/environment/bg/midground.png"
dest_files=["res://.godot/imported/midground.png-395e3b40bd65c312dc5fc7afb2b9bcda.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://u7jn2uupwh84"
path="res://.godot/imported/plane.png-2123d8756656030b687b5854ee45ac74.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/environment/stuff/plane.png"
dest_files=["res://.godot/imported/plane.png-2123d8756656030b687b5854ee45ac74.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cgfmfshcgk32h"
path="res://.godot/imported/Terrain (32x32).png-3bf12044c27f645f7b3ccaa417d9adb1.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/environment/terrains/Terrain (32x32).png"
dest_files=["res://.godot/imported/Terrain (32x32).png-3bf12044c27f645f7b3ccaa417d9adb1.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c1gqnwp5pq37g"
path="res://.godot/imported/mushroom_32x64.png-029639574d0e250658cc399b22fc1a79.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/environment/veggies/mushroom_32x64.png"
dest_files=["res://.godot/imported/mushroom_32x64.png-029639574d0e250658cc399b22fc1a79.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 675 B

View File

@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bxsc7u8bupxeq"
path="res://.godot/imported/veg_32x32.png-f9cf09bd889241b79dfda92291ada574.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/environment/veggies/veg_32x32.png"
dest_files=["res://.godot/imported/veg_32x32.png-f9cf09bd889241b79dfda92291ada574.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@ -15,6 +15,14 @@ run/main_scene="uid://cqk2rgy3m1chs"
config/features=PackedStringArray("4.6", "Forward Plus")
config/icon="res://icon.svg"
[display]
window/size/viewport_width=480
window/size/viewport_height=270
window/size/window_width_override=960
window/size/window_height_override=540
window/stretch/mode="viewport"
[file_customization]
folder_colors={

View File

@ -1,14 +1,127 @@
[gd_scene format=3 uid="uid://cqk2rgy3m1chs"]
[gd_scene format=4 uid="uid://cqk2rgy3m1chs"]
[ext_resource type="Script" uid="uid://dxubdt7nh5s1j" path="res://scripts/gameController.gd" id="1_lnu2h"]
[ext_resource type="Script" uid="uid://ch2id76i14srx" path="res://scripts/scene_manager.gd" id="2_iywne"]
[ext_resource type="PackedScene" uid="uid://b6lw2go5mwk3h" path="res://scenes/crate.tscn" id="2_lnu2h"]
[ext_resource type="PackedScene" uid="uid://s0utas3jmhjk" path="res://scenes/player.tscn" id="3_iywne"]
[ext_resource type="Texture2D" uid="uid://cgfmfshcgk32h" path="res://assets/graphics/environment/terrains/Terrain (32x32).png" id="3_u5sy4"]
[ext_resource type="Texture2D" uid="uid://bxsc7u8bupxeq" path="res://assets/graphics/environment/veggies/veg_32x32.png" id="4_0tnpc"]
[ext_resource type="PackedScene" uid="uid://bf50mxdma8wq4" path="res://scenes/trigger.tscn" id="4_lbhrr"]
[ext_resource type="Texture2D" uid="uid://c1gqnwp5pq37g" path="res://assets/graphics/environment/veggies/mushroom_32x64.png" id="5_vtaks"]
[ext_resource type="PackedScene" uid="uid://bgi18lbutp5ui" path="res://scenes/npc_character.tscn" id="6_u5sy4"]
[ext_resource type="Texture2D" uid="uid://cljdn8xafgbr3" path="res://assets/graphics/environment/bg/bgcolor.png" id="10_vtaks"]
[ext_resource type="Texture2D" uid="uid://dvj4b1ku3fdwa" path="res://assets/graphics/environment/bg/midground.png" id="11_kvpfn"]
[ext_resource type="Texture2D" uid="uid://bci2ejdugybxi" path="res://assets/graphics/environment/bg/foreground.png" id="12_dinhu"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8cj0n"]
size = Vector2(74, 20)
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_gee14"]
texture = ExtResource("3_u5sy4")
texture_region_size = Vector2i(32, 32)
0:0/0 = 0
1:0/0 = 0
2:0/0 = 0
4:0/0 = 0
4:0/0/terrain_set = 0
4:0/0/terrain = 0
4:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
4:0/0/terrains_peering_bit/bottom_side = 0
6:0/0 = 0
7:0/0 = 0
9:0/0 = 0
10:0/0 = 0
12:0/0 = 0
13:0/0 = 0
15:0/0 = 0
0:1/0 = 0
1:1/0 = 0
2:1/0 = 0
4:1/0 = 0
4:1/0/terrain_set = 0
4:1/0/terrain = 0
4:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
4:1/0/terrains_peering_bit/bottom_side = 0
4:1/0/terrains_peering_bit/top_side = 0
6:1/0 = 0
7:1/0 = 0
9:1/0 = 0
10:1/0 = 0
12:1/0 = 0
13:1/0 = 0
15:1/0 = 0
16:1/0 = 0
0:2/0 = 0
1:2/0 = 0
2:2/0 = 0
4:2/0 = 0
4:2/0/terrain_set = 0
4:2/0/terrain = 0
4:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
4:2/0/terrains_peering_bit/top_side = 0
6:3/0 = 0
7:3/0 = 0
9:3/0 = 0
10:3/0 = 0
12:3/0 = 0
13:3/0 = 0
15:3/0 = 0
16:3/0 = 0
0:4/0 = 0
0:4/0/terrain_set = 0
0:4/0/terrain = 0
0:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
0:4/0/terrains_peering_bit/right_side = 0
1:4/0 = 0
1:4/0/terrain_set = 0
1:4/0/terrain = 0
1:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
1:4/0/terrains_peering_bit/right_side = 0
1:4/0/terrains_peering_bit/left_side = 0
2:4/0 = 0
2:4/0/terrain_set = 0
2:4/0/terrain = 0
2:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
2:4/0/terrains_peering_bit/left_side = 0
4:4/0 = 0
4:4/0/terrain_set = 0
4:4/0/terrain = 0
4:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
6:4/0 = 0
7:4/0 = 0
9:4/0 = 0
10:4/0 = 0
12:4/0 = 0
13:4/0 = 0
15:4/0 = 0
16:4/0 = 0
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_kvpfn"]
texture = ExtResource("4_0tnpc")
texture_region_size = Vector2i(32, 32)
0:0/0 = 0
0:0/0/terrain_set = 0
0:0/0/terrain = 1
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_dinhu"]
texture = ExtResource("5_vtaks")
texture_region_size = Vector2i(32, 32)
0:0/0 = 0
0:0/0/terrain_set = 0
0:0/0/terrains_peering_bit/bottom_side = 1
0:1/0 = 0
0:1/0/terrain_set = 0
0:1/0/terrain = 1
0:1/0/terrains_peering_bit/top_side = 1
[sub_resource type="TileSet" id="TileSet_0tnpc"]
tile_size = Vector2i(32, 32)
physics_layer_0/collision_layer = 1
terrain_set_0/mode = 0
terrain_set_0/terrain_0/name = "LeafyDirt"
terrain_set_0/terrain_0/color = Color(0.5, 0.34375, 0.25, 1)
terrain_set_0/terrain_1/name = "Veg"
terrain_set_0/terrain_1/color = Color(0.5, 0.4375, 0.25, 1)
sources/0 = SubResource("TileSetAtlasSource_gee14")
sources/1 = SubResource("TileSetAtlasSource_kvpfn")
sources/2 = SubResource("TileSetAtlasSource_dinhu")
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_lbhrr"]
@ -19,8 +132,37 @@ script = ExtResource("1_lnu2h")
unique_name_in_owner = true
script = ExtResource("2_iywne")
[node name="FarSky" type="Parallax2D" parent="." unique_id=1670161639]
repeat_size = Vector2(480, 270)
[node name="Sprite2D" type="Sprite2D" parent="FarSky" unique_id=939473192]
texture = ExtResource("10_vtaks")
offset = Vector2(240, 135)
[node name="Midground" type="Parallax2D" parent="." unique_id=1879206139]
repeat_size = Vector2(480, 0)
[node name="Sprite2D" type="Sprite2D" parent="Midground" unique_id=945851306]
texture_filter = 1
texture = ExtResource("11_kvpfn")
offset = Vector2(240, 300)
[node name="Foreground" type="Parallax2D" parent="." unique_id=968148700]
scroll_scale = Vector2(1.5, 1)
repeat_size = Vector2(480, 0)
[node name="Sprite2D" type="Sprite2D" parent="Foreground" unique_id=693353172]
texture_filter = 1
texture = ExtResource("12_dinhu")
offset = Vector2(240, 300)
[node name="TileMapLayer" type="TileMapLayer" parent="." unique_id=555266141]
texture_filter = 1
tile_map_data = PackedByteArray("AAAQAA0AAAAAAAQAAAARAA0AAAABAAQAAAASAA0AAAABAAQAAAATAA0AAAABAAQAAAAUAA0AAAACAAQAAAAOAA0AAAAEAAQAAAAUAAwAAQAAAAAAAAARAAwAAQAAAAAAAAAVAAwAAQAAAAAAAAAWAAwAAgAAAAEAAAAWAAsAAgAAAAAAAAATAAwAAgAAAAEAAAATAAsAAgAAAAAAAAA=")
tile_set = SubResource("TileSet_0tnpc")
[node name="Player" parent="." unique_id=161143934 instance=ExtResource("3_iywne")]
position = Vector2(535, 417)
position = Vector2(524, 400)
[node name="Triggers" type="Node2D" parent="." unique_id=1411399015]
@ -39,27 +181,19 @@ effect = "powerup"
[node name="Crates" type="Node2D" parent="." unique_id=1983554973]
[node name="Crate" parent="Crates" unique_id=1307809047 instance=ExtResource("2_lnu2h")]
position = Vector2(650, 418)
position = Vector2(657.99994, 382.99994)
[node name="Crate2" parent="Crates" unique_id=1988562966 instance=ExtResource("2_lnu2h")]
position = Vector2(587.99994, 414.99997)
position = Vector2(627.99994, 350)
[node name="Crate3" parent="Crates" unique_id=1771442258 instance=ExtResource("2_lnu2h")]
position = Vector2(575, 255)
[node name="Crate4" parent="Crates" unique_id=34543093 instance=ExtResource("2_lnu2h")]
position = Vector2(620, 416)
position = Vector2(622.99994, 388.99997)
[node name="Level" type="Node2D" parent="." unique_id=1225714734]
[node name="StaticBody2D" type="StaticBody2D" parent="Level" unique_id=2062716976]
position = Vector2(591, 442)
scale = Vector2(2, 1)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D" unique_id=1655047088]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="StaticBody2D2" type="StaticBody2D" parent="Level" unique_id=426786591]
position = Vector2(601, 622)
metadata/_edit_group_ = true

View File

@ -198,4 +198,7 @@ sprite_frames = SubResource("SpriteFrames_jej6c")
animation = &"falling"
autoplay = "idle"
[node name="Camera2D" type="Camera2D" parent="." unique_id=600604016]
offset = Vector2(0, -30)
[connection signal="animation_finished" from="PlayerGraphic" to="." method="_on_animation_finished"]