diff --git a/assets/graphics/environment/backgrounds/block.png b/assets/graphics/environment/backgrounds/block.png new file mode 100644 index 0000000..5f37aa6 Binary files /dev/null and b/assets/graphics/environment/backgrounds/block.png differ diff --git a/assets/graphics/environment/backgrounds/block.png.import b/assets/graphics/environment/backgrounds/block.png.import new file mode 100644 index 0000000..9a3806b --- /dev/null +++ b/assets/graphics/environment/backgrounds/block.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bltcodwg82who" +path="res://.godot/imported/block.png-3aa040c2e63d44fce35c994ecca4a9d9.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/graphics/environment/backgrounds/block.png" +dest_files=["res://.godot/imported/block.png-3aa040c2e63d44fce35c994ecca4a9d9.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 diff --git a/assets/graphics/environment/backgrounds/forestbackground.png b/assets/graphics/environment/backgrounds/forestbackground.png new file mode 100644 index 0000000..975c185 Binary files /dev/null and b/assets/graphics/environment/backgrounds/forestbackground.png differ diff --git a/assets/graphics/environment/backgrounds/forestbackground.png.import b/assets/graphics/environment/backgrounds/forestbackground.png.import new file mode 100644 index 0000000..dc8fd31 --- /dev/null +++ b/assets/graphics/environment/backgrounds/forestbackground.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b1pfjj3fy2omh" +path="res://.godot/imported/forestbackground.png-1170ae197e211023a79091cf48300332.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/graphics/environment/backgrounds/forestbackground.png" +dest_files=["res://.godot/imported/forestbackground.png-1170ae197e211023a79091cf48300332.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 diff --git a/assets/graphics/environment/backgrounds/sky.png b/assets/graphics/environment/backgrounds/sky.png new file mode 100644 index 0000000..e9b48de Binary files /dev/null and b/assets/graphics/environment/backgrounds/sky.png differ diff --git a/assets/graphics/environment/backgrounds/sky.png.import b/assets/graphics/environment/backgrounds/sky.png.import new file mode 100644 index 0000000..99ee669 --- /dev/null +++ b/assets/graphics/environment/backgrounds/sky.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bcbxw0bqcx1ra" +path="res://.godot/imported/sky.png-b132b9e240387925c40cca10d1d14c56.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/graphics/environment/backgrounds/sky.png" +dest_files=["res://.godot/imported/sky.png-b132b9e240387925c40cca10d1d14c56.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 diff --git a/assets/graphics/environment/backgrounds/trees.png b/assets/graphics/environment/backgrounds/trees.png new file mode 100644 index 0000000..2781b2c Binary files /dev/null and b/assets/graphics/environment/backgrounds/trees.png differ diff --git a/assets/graphics/environment/backgrounds/trees.png.import b/assets/graphics/environment/backgrounds/trees.png.import new file mode 100644 index 0000000..90dad85 --- /dev/null +++ b/assets/graphics/environment/backgrounds/trees.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dhbq35sm7q38" +path="res://.godot/imported/trees.png-b1cfb32a6f99a640507fdab863a473f5.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/graphics/environment/backgrounds/trees.png" +dest_files=["res://.godot/imported/trees.png-b1cfb32a6f99a640507fdab863a473f5.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 diff --git a/assets/graphics/environment/terrain/mushroom_32x64.png b/assets/graphics/environment/terrain/mushroom_32x64.png new file mode 100644 index 0000000..9dca2d0 Binary files /dev/null and b/assets/graphics/environment/terrain/mushroom_32x64.png differ diff --git a/assets/graphics/environment/terrain/mushroom_32x64.png.import b/assets/graphics/environment/terrain/mushroom_32x64.png.import new file mode 100644 index 0000000..b083c77 --- /dev/null +++ b/assets/graphics/environment/terrain/mushroom_32x64.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bk35d1yyqwvxf" +path="res://.godot/imported/mushroom_32x64.png-cefb137d64a82ca31a8f0068d916c09f.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/graphics/environment/terrain/mushroom_32x64.png" +dest_files=["res://.godot/imported/mushroom_32x64.png-cefb137d64a82ca31a8f0068d916c09f.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 diff --git a/assets/graphics/environment/terrain/veg_32x32.png b/assets/graphics/environment/terrain/veg_32x32.png new file mode 100644 index 0000000..4e09fa9 Binary files /dev/null and b/assets/graphics/environment/terrain/veg_32x32.png differ diff --git a/assets/graphics/environment/terrain/veg_32x32.png.import b/assets/graphics/environment/terrain/veg_32x32.png.import new file mode 100644 index 0000000..227d9b1 --- /dev/null +++ b/assets/graphics/environment/terrain/veg_32x32.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ctremhbhix1fj" +path="res://.godot/imported/veg_32x32.png-4b0b47ef99f3aa28e8f24956e44a31a5.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/graphics/environment/terrain/veg_32x32.png" +dest_files=["res://.godot/imported/veg_32x32.png-4b0b47ef99f3aa28e8f24956e44a31a5.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 diff --git a/assets/graphics/objects/crate.png b/assets/graphics/objects/crate.png new file mode 100644 index 0000000..2b8bdcd Binary files /dev/null and b/assets/graphics/objects/crate.png differ diff --git a/assets/graphics/objects/crate.png.import b/assets/graphics/objects/crate.png.import new file mode 100644 index 0000000..5eae428 --- /dev/null +++ b/assets/graphics/objects/crate.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bvm82m176wflv" +path="res://.godot/imported/crate.png-b286bd97caa3cbc59746f2db7de46191.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/graphics/objects/crate.png" +dest_files=["res://.godot/imported/crate.png-b286bd97caa3cbc59746f2db7de46191.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 diff --git a/assets/graphics/pickups/coin.png b/assets/graphics/pickups/coin.png new file mode 100644 index 0000000..01ae33d Binary files /dev/null and b/assets/graphics/pickups/coin.png differ diff --git a/assets/graphics/pickups/coin.png.import b/assets/graphics/pickups/coin.png.import new file mode 100644 index 0000000..7ad30c0 --- /dev/null +++ b/assets/graphics/pickups/coin.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dqt56yigjia14" +path="res://.godot/imported/coin.png-f0b33289d8d72c34d5a0c76da4c0f19c.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/graphics/pickups/coin.png" +dest_files=["res://.godot/imported/coin.png-f0b33289d8d72c34d5a0c76da4c0f19c.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 diff --git a/assets/graphics/projectiles/coin.png b/assets/graphics/projectiles/coin.png new file mode 100644 index 0000000..01ae33d Binary files /dev/null and b/assets/graphics/projectiles/coin.png differ diff --git a/assets/graphics/projectiles/coin.png.import b/assets/graphics/projectiles/coin.png.import new file mode 100644 index 0000000..d716141 --- /dev/null +++ b/assets/graphics/projectiles/coin.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cqfcr400bxn17" +path="res://.godot/imported/coin.png-4c7dc7453870774524b4849f32b6deac.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/graphics/projectiles/coin.png" +dest_files=["res://.godot/imported/coin.png-4c7dc7453870774524b4849f32b6deac.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 diff --git a/assets/graphics/projectiles/pixel_bullet.png b/assets/graphics/projectiles/pixel_bullet.png new file mode 100644 index 0000000..900d030 Binary files /dev/null and b/assets/graphics/projectiles/pixel_bullet.png differ diff --git a/assets/graphics/projectiles/pixel_bullet.png.import b/assets/graphics/projectiles/pixel_bullet.png.import new file mode 100644 index 0000000..732031d --- /dev/null +++ b/assets/graphics/projectiles/pixel_bullet.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c4jgxarp4pf2s" +path="res://.godot/imported/pixel_bullet.png-30d6d1e8b5e1332f8b2e2cee72a9e790.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/graphics/projectiles/pixel_bullet.png" +dest_files=["res://.godot/imported/pixel_bullet.png-30d6d1e8b5e1332f8b2e2cee72a9e790.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 diff --git a/project.godot b/project.godot index aa25b38..900116c 100644 --- a/project.godot +++ b/project.godot @@ -12,9 +12,17 @@ config_version=5 config/name="JulyGame" run/main_scene="res://scenes/game.tscn" -config/features=PackedStringArray("4.4", "Forward Plus") +config/features=PackedStringArray("4.3", "Forward Plus") config/icon="res://icon.svg" +[display] + +window/size/viewport_width=320 +window/size/viewport_height=180 +window/size/window_width_override=960 +window/size/window_height_override=540 +window/stretch/mode="viewport" + [input] shove={ diff --git a/scenes/bullet.tscn b/scenes/bullet.tscn index 0d36a37..cc34107 100644 --- a/scenes/bullet.tscn +++ b/scenes/bullet.tscn @@ -1,15 +1,24 @@ -[gd_scene load_steps=3 format=3 uid="uid://lg8k51aicde4"] +[gd_scene load_steps=4 format=3 uid="uid://lg8k51aicde4"] -[ext_resource type="Script" uid="uid://p7brl4n4miw6" path="res://scripts/bullet.gd" id="1_bpcfw"] +[ext_resource type="Script" path="res://scripts/bullet.gd" id="1_bpcfw"] +[ext_resource type="Texture2D" uid="uid://c4jgxarp4pf2s" path="res://assets/graphics/projectiles/pixel_bullet.png" id="2_imvee"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_oprgb"] -size = Vector2(8, 4) +size = Vector2(8, 3) [node name="Bullet" type="Area2D"] script = ExtResource("1_bpcfw") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] +position = Vector2(0, -0.5) shape = SubResource("RectangleShape2D_oprgb") debug_color = Color(0.866207, 0.326527, 0.373638, 0.42) +[node name="BulletGraphic" type="Sprite2D" parent="."] +texture_filter = 1 +position = Vector2(-2, -2) +rotation = 3.14159 +scale = Vector2(0.0601394, 0.0601394) +texture = ExtResource("2_imvee") + [connection signal="body_entered" from="." to="." method="_on_body_entered"] diff --git a/scenes/coin.tscn b/scenes/coin.tscn new file mode 100644 index 0000000..4a7368c --- /dev/null +++ b/scenes/coin.tscn @@ -0,0 +1,114 @@ +[gd_scene load_steps=17 format=3 uid="uid://bxgmkcya2nup8"] + +[ext_resource type="Script" path="res://scripts/coin.gd" id="1_0370w"] +[ext_resource type="Texture2D" uid="uid://dqt56yigjia14" path="res://assets/graphics/pickups/coin.png" id="1_w8jar"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_xqi52"] +atlas = ExtResource("1_w8jar") +region = Rect2(0, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_timbf"] +atlas = ExtResource("1_w8jar") +region = Rect2(16, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_a81kj"] +atlas = ExtResource("1_w8jar") +region = Rect2(32, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_5ia0i"] +atlas = ExtResource("1_w8jar") +region = Rect2(48, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_mxyi7"] +atlas = ExtResource("1_w8jar") +region = Rect2(64, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ou15j"] +atlas = ExtResource("1_w8jar") +region = Rect2(80, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_psh60"] +atlas = ExtResource("1_w8jar") +region = Rect2(96, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_0dxws"] +atlas = ExtResource("1_w8jar") +region = Rect2(112, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_8nfrw"] +atlas = ExtResource("1_w8jar") +region = Rect2(128, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_mkdvk"] +atlas = ExtResource("1_w8jar") +region = Rect2(144, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_04na0"] +atlas = ExtResource("1_w8jar") +region = Rect2(160, 0, 16, 16) + +[sub_resource type="AtlasTexture" id="AtlasTexture_bcvj3"] +atlas = ExtResource("1_w8jar") +region = Rect2(176, 0, 16, 16) + +[sub_resource type="SpriteFrames" id="SpriteFrames_p0bax"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_xqi52") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_timbf") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_a81kj") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_5ia0i") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_mxyi7") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ou15j") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_psh60") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_0dxws") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_8nfrw") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_mkdvk") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_04na0") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_bcvj3") +}], +"loop": true, +"name": &"idle", +"speed": 12.0 +}] + +[sub_resource type="CircleShape2D" id="CircleShape2D_1unyf"] + +[node name="Coin" type="Area2D"] +script = ExtResource("1_0370w") + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] +texture_filter = 1 +sprite_frames = SubResource("SpriteFrames_p0bax") +animation = &"idle" +autoplay = "idle" +frame_progress = 0.293314 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +scale = Vector2(0.597135, 0.597135) +shape = SubResource("CircleShape2D_1unyf") + +[connection signal="body_entered" from="." to="." method="_on_body_entered"] diff --git a/scenes/crate.tscn b/scenes/crate.tscn index 57015e7..01c67f4 100644 --- a/scenes/crate.tscn +++ b/scenes/crate.tscn @@ -1,14 +1,20 @@ -[gd_scene load_steps=3 format=3 uid="uid://d0mw3eh00s3kr"] +[gd_scene load_steps=4 format=3 uid="uid://d0mw3eh00s3kr"] -[ext_resource type="Script" uid="uid://bv1u5eyjco2m8" path="res://scripts/crate.gd" id="1_j2btj"] +[ext_resource type="Script" path="res://scripts/crate.gd" id="1_j2btj"] +[ext_resource type="Texture2D" uid="uid://bvm82m176wflv" path="res://assets/graphics/objects/crate.png" id="2_x3laa"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_uwrxv"] +size = Vector2(22, 23) [node name="Crate" type="RigidBody2D" groups=["pushables", "shootables"]] -rotation = 0.602841 script = ExtResource("1_j2btj") metadata/_edit_group_ = true -[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +[node name="CollisionShape2D" type="CollisionShape2D" parent="." groups=["shootables"]] +position = Vector2(0, -1.5) shape = SubResource("RectangleShape2D_uwrxv") debug_color = Color(0.820447, 0.391315, 0.259417, 0.42) + +[node name="Sprite2D" type="Sprite2D" parent="."] +scale = Vector2(0.08, 0.08) +texture = ExtResource("2_x3laa") diff --git a/scenes/game.tscn b/scenes/game.tscn index b9c4538..a4d0933 100644 --- a/scenes/game.tscn +++ b/scenes/game.tscn @@ -1,66 +1,426 @@ -[gd_scene load_steps=11 format=3 uid="uid://doctwh8lc63y5"] +[gd_scene load_steps=19 format=4 uid="uid://doctwh8lc63y5"] -[ext_resource type="Script" uid="uid://cpua8fr5bby78" path="res://scripts/gamecontroller.gd" id="1_lnu2h"] +[ext_resource type="Script" path="res://scripts/gamecontroller.gd" id="1_lnu2h"] [ext_resource type="PackedScene" uid="uid://b5p1mlv4c1olv" path="res://scenes/player.tscn" id="2_5tj0f"] -[ext_resource type="Script" uid="uid://chu805lvjnh7s" path="res://scripts/scene_manager.gd" id="2_w84c1"] +[ext_resource type="Script" path="res://scripts/scene_manager.gd" id="2_w84c1"] [ext_resource type="PackedScene" uid="uid://6n3305pqp43a" path="res://scenes/trigger.tscn" id="2_yqjtg"] +[ext_resource type="Texture2D" uid="uid://bltcodwg82who" path="res://assets/graphics/environment/backgrounds/block.png" id="3_en3le"] +[ext_resource type="Texture2D" uid="uid://b1pfjj3fy2omh" path="res://assets/graphics/environment/backgrounds/forestbackground.png" id="4_0xw4c"] [ext_resource type="Texture2D" uid="uid://cfoysdgyt6nar" path="res://assets/graphics/environment/terrain/Terrain (32x32)(1).png" id="4_p57ef"] [ext_resource type="PackedScene" uid="uid://d0mw3eh00s3kr" path="res://scenes/crate.tscn" id="4_syc2o"] +[ext_resource type="Texture2D" uid="uid://ctremhbhix1fj" path="res://assets/graphics/environment/terrain/veg_32x32.png" id="5_j5rfa"] +[ext_resource type="Texture2D" uid="uid://dhbq35sm7q38" path="res://assets/graphics/environment/backgrounds/trees.png" id="5_mv16k"] +[ext_resource type="Texture2D" uid="uid://bk35d1yyqwvxf" path="res://assets/graphics/environment/terrain/mushroom_32x64.png" id="6_06lft"] +[ext_resource type="PackedScene" uid="uid://bxgmkcya2nup8" path="res://scenes/coin.tscn" id="12_nwobp"] [sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_u5sy4"] texture = ExtResource("4_p57ef") texture_region_size = Vector2i(32, 32) 0:0/0 = 0 +0:0/0/terrain_set = 0 +0:0/0/terrain = 0 +0:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, -2.12132, -0.530331, -1.76777, -0.530331, 16, -16, 16) +0:0/0/terrains_peering_bit/right_side = 0 +0:0/0/terrains_peering_bit/bottom_right_corner = 0 +0:0/0/terrains_peering_bit/bottom_side = 0 1:0/0 = 0 +1:0/0/terrain_set = 0 +1:0/0/terrain = 0 +1:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 1.41421, -16, 1.59099) +1:0/0/terrains_peering_bit/right_side = 0 +1:0/0/terrains_peering_bit/bottom_right_corner = 0 +1:0/0/terrains_peering_bit/bottom_side = 0 +1:0/0/terrains_peering_bit/bottom_left_corner = 0 +1:0/0/terrains_peering_bit/left_side = 0 2:0/0 = 0 +2:0/0/terrain_set = 0 +2:0/0/terrain = 0 +2:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, 0.353554, 16, 0.353554, 0.530329, -16, 0) +2:0/0/terrains_peering_bit/bottom_side = 0 +2:0/0/terrains_peering_bit/bottom_left_corner = 0 +2:0/0/terrains_peering_bit/left_side = 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 +6:0/0/terrain_set = 0 +6:0/0/terrain = 0 +6:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +6:0/0/terrains_peering_bit/right_side = 0 +6:0/0/terrains_peering_bit/bottom_side = 0 +6:0/0/terrains_peering_bit/bottom_left_corner = 0 +6:0/0/terrains_peering_bit/left_side = 0 +6:0/0/terrains_peering_bit/top_left_corner = 0 +6:0/0/terrains_peering_bit/top_side = 0 +6:0/0/terrains_peering_bit/top_right_corner = 0 7:0/0 = 0 +7:0/0/terrain_set = 0 +7:0/0/terrain = 0 +7:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +7:0/0/terrains_peering_bit/right_side = 0 +7:0/0/terrains_peering_bit/bottom_right_corner = 0 +7:0/0/terrains_peering_bit/bottom_side = 0 +7:0/0/terrains_peering_bit/left_side = 0 +7:0/0/terrains_peering_bit/top_left_corner = 0 +7:0/0/terrains_peering_bit/top_side = 0 +7:0/0/terrains_peering_bit/top_right_corner = 0 9:0/0 = 0 +9:0/0/terrain_set = 0 +9:0/0/terrain = 0 +9:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +9:0/0/terrains_peering_bit/right_side = 0 +9:0/0/terrains_peering_bit/bottom_right_corner = 0 +9:0/0/terrains_peering_bit/bottom_side = 0 +9:0/0/terrains_peering_bit/bottom_left_corner = 0 +9:0/0/terrains_peering_bit/left_side = 0 +9:0/0/terrains_peering_bit/top_side = 0 10:0/0 = 0 +10:0/0/terrain_set = 0 +10:0/0/terrain = 0 +10:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +10:0/0/terrains_peering_bit/right_side = 0 +10:0/0/terrains_peering_bit/bottom_side = 0 +10:0/0/terrains_peering_bit/bottom_left_corner = 0 +10:0/0/terrains_peering_bit/left_side = 0 +10:0/0/terrains_peering_bit/top_left_corner = 0 +10:0/0/terrains_peering_bit/top_side = 0 12:0/0 = 0 +12:0/0/terrain_set = 0 +12:0/0/terrain = 0 +12:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +12:0/0/terrains_peering_bit/right_side = 0 +12:0/0/terrains_peering_bit/bottom_right_corner = 0 +12:0/0/terrains_peering_bit/bottom_side = 0 +12:0/0/terrains_peering_bit/left_side = 0 +12:0/0/terrains_peering_bit/top_side = 0 13:0/0 = 0 +13:0/0/terrain_set = 0 +13:0/0/terrain = 0 +13:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +13:0/0/terrains_peering_bit/right_side = 0 +13:0/0/terrains_peering_bit/bottom_side = 0 +13:0/0/terrains_peering_bit/bottom_left_corner = 0 +13:0/0/terrains_peering_bit/left_side = 0 +13:0/0/terrains_peering_bit/top_side = 0 15:0/0 = 0 +15:0/0/terrain_set = 0 +15:0/0/terrain = 0 +15:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +15:0/0/terrains_peering_bit/right_side = 0 +15:0/0/terrains_peering_bit/bottom_side = 0 +15:0/0/terrains_peering_bit/left_side = 0 +15:0/0/terrains_peering_bit/top_side = 0 0:1/0 = 0 +0:1/0/terrain_set = 0 +0:1/0/terrain = 0 +0:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +0:1/0/terrains_peering_bit/right_side = 0 +0:1/0/terrains_peering_bit/bottom_right_corner = 0 +0:1/0/terrains_peering_bit/bottom_side = 0 +0:1/0/terrains_peering_bit/top_side = 0 +0:1/0/terrains_peering_bit/top_right_corner = 0 1:1/0 = 0 +1:1/0/terrain_set = 0 +1:1/0/terrain = 0 +1:1/0/terrains_peering_bit/right_side = 0 +1:1/0/terrains_peering_bit/bottom_right_corner = 0 +1:1/0/terrains_peering_bit/bottom_side = 0 +1:1/0/terrains_peering_bit/bottom_left_corner = 0 +1:1/0/terrains_peering_bit/left_side = 0 +1:1/0/terrains_peering_bit/top_left_corner = 0 +1:1/0/terrains_peering_bit/top_side = 0 +1:1/0/terrains_peering_bit/top_right_corner = 0 2:1/0 = 0 +2:1/0/terrain_set = 0 +2:1/0/terrain = 0 +2:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +2:1/0/terrains_peering_bit/bottom_side = 0 +2:1/0/terrains_peering_bit/bottom_left_corner = 0 +2:1/0/terrains_peering_bit/left_side = 0 +2:1/0/terrains_peering_bit/top_left_corner = 0 +2:1/0/terrains_peering_bit/top_side = 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 +6:1/0/terrain_set = 0 +6:1/0/terrain = 0 +6:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +6:1/0/terrains_peering_bit/right_side = 0 +6:1/0/terrains_peering_bit/bottom_right_corner = 0 +6:1/0/terrains_peering_bit/bottom_side = 0 +6:1/0/terrains_peering_bit/bottom_left_corner = 0 +6:1/0/terrains_peering_bit/left_side = 0 +6:1/0/terrains_peering_bit/top_left_corner = 0 +6:1/0/terrains_peering_bit/top_side = 0 7:1/0 = 0 +7:1/0/terrain_set = 0 +7:1/0/terrain = 0 +7:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +7:1/0/terrains_peering_bit/right_side = 0 +7:1/0/terrains_peering_bit/bottom_right_corner = 0 +7:1/0/terrains_peering_bit/bottom_side = 0 +7:1/0/terrains_peering_bit/bottom_left_corner = 0 +7:1/0/terrains_peering_bit/left_side = 0 +7:1/0/terrains_peering_bit/top_side = 0 +7:1/0/terrains_peering_bit/top_right_corner = 0 9:1/0 = 0 +9:1/0/terrain_set = 0 +9:1/0/terrain = 0 +9:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +9:1/0/terrains_peering_bit/right_side = 0 +9:1/0/terrains_peering_bit/bottom_right_corner = 0 +9:1/0/terrains_peering_bit/bottom_side = 0 +9:1/0/terrains_peering_bit/left_side = 0 +9:1/0/terrains_peering_bit/top_side = 0 +9:1/0/terrains_peering_bit/top_right_corner = 0 10:1/0 = 0 +10:1/0/terrain_set = 0 +10:1/0/terrain = 0 +10:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +10:1/0/terrains_peering_bit/right_side = 0 +10:1/0/terrains_peering_bit/bottom_side = 0 +10:1/0/terrains_peering_bit/left_side = 0 +10:1/0/terrains_peering_bit/top_left_corner = 0 +10:1/0/terrains_peering_bit/top_side = 0 +10:1/0/terrains_peering_bit/top_right_corner = 0 12:1/0 = 0 +12:1/0/terrain_set = 0 +12:1/0/terrain = 0 +12:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +12:1/0/terrains_peering_bit/right_side = 0 +12:1/0/terrains_peering_bit/bottom_side = 0 +12:1/0/terrains_peering_bit/left_side = 0 +12:1/0/terrains_peering_bit/top_side = 0 +12:1/0/terrains_peering_bit/top_right_corner = 0 13:1/0 = 0 +13:1/0/terrain_set = 0 +13:1/0/terrain = 0 +13:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +13:1/0/terrains_peering_bit/right_side = 0 +13:1/0/terrains_peering_bit/bottom_side = 0 +13:1/0/terrains_peering_bit/left_side = 0 +13:1/0/terrains_peering_bit/top_left_corner = 0 +13:1/0/terrains_peering_bit/top_side = 0 15:1/0 = 0 +15:1/0/terrain_set = 0 +15:1/0/terrain = 0 +15:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +15:1/0/terrains_peering_bit/right_side = 0 +15:1/0/terrains_peering_bit/bottom_side = 0 +15:1/0/terrains_peering_bit/bottom_left_corner = 0 +15:1/0/terrains_peering_bit/left_side = 0 +15:1/0/terrains_peering_bit/top_side = 0 +15:1/0/terrains_peering_bit/top_right_corner = 0 16:1/0 = 0 +16:1/0/terrain_set = 0 +16:1/0/terrain = 0 +16:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +16:1/0/terrains_peering_bit/right_side = 0 +16:1/0/terrains_peering_bit/bottom_right_corner = 0 +16:1/0/terrains_peering_bit/bottom_side = 0 +16:1/0/terrains_peering_bit/left_side = 0 +16:1/0/terrains_peering_bit/top_left_corner = 0 +16:1/0/terrains_peering_bit/top_side = 0 0:2/0 = 0 +0:2/0/terrain_set = 0 +0:2/0/terrain = 0 +0:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -3.53553, 16, -13.7886, 10.4298, -16, 1.41421) +0:2/0/terrains_peering_bit/right_side = 0 +0:2/0/terrains_peering_bit/top_side = 0 +0:2/0/terrains_peering_bit/top_right_corner = 0 1:2/0 = 0 +1:2/0/terrain_set = 0 +1:2/0/terrain = 0 +1:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +1:2/0/terrains_peering_bit/right_side = 0 +1:2/0/terrains_peering_bit/left_side = 0 +1:2/0/terrains_peering_bit/top_left_corner = 0 +1:2/0/terrains_peering_bit/top_side = 0 +1:2/0/terrains_peering_bit/top_right_corner = 0 2:2/0 = 0 +2:2/0/terrain_set = 0 +2:2/0/terrain = 0 +2:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 5.65685, 12.9047, 12.7279, 5.83363, 16, -16, 16) +2:2/0/terrains_peering_bit/left_side = 0 +2:2/0/terrains_peering_bit/top_left_corner = 0 +2:2/0/terrains_peering_bit/top_side = 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, 3.53553, 12.9047, 13.0815, 0.530331, 16, -12.5511, 12.1976, -16, 2.65165) +4:2/0/terrains_peering_bit/top_side = 0 6:3/0 = 0 +6:3/0/terrain_set = 0 +6:3/0/terrain = 0 +6:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, -2.2981, -16, -1.59099, 16, -16, 16) +6:3/0/terrains_peering_bit/right_side = 0 +6:3/0/terrains_peering_bit/bottom_side = 0 +6:3/0/terrains_peering_bit/top_side = 0 +6:3/0/terrains_peering_bit/top_right_corner = 0 7:3/0 = 0 +7:3/0/terrain_set = 0 +7:3/0/terrain = 0 +7:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(3.0052, -16, 16, -16, 16, 16, 3.53553, 16) +7:3/0/terrains_peering_bit/bottom_side = 0 +7:3/0/terrains_peering_bit/left_side = 0 +7:3/0/terrains_peering_bit/top_left_corner = 0 +7:3/0/terrains_peering_bit/top_side = 0 9:3/0 = 0 +9:3/0/terrain_set = 0 +9:3/0/terrain = 0 +9:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +9:3/0/terrains_peering_bit/right_side = 0 +9:3/0/terrains_peering_bit/bottom_side = 0 +9:3/0/terrains_peering_bit/bottom_left_corner = 0 +9:3/0/terrains_peering_bit/left_side = 0 10:3/0 = 0 +10:3/0/terrain_set = 0 +10:3/0/terrain = 0 +10:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +10:3/0/terrains_peering_bit/right_side = 0 +10:3/0/terrains_peering_bit/bottom_right_corner = 0 +10:3/0/terrains_peering_bit/bottom_side = 0 +10:3/0/terrains_peering_bit/left_side = 0 12:3/0 = 0 +12:3/0/terrain_set = 0 +12:3/0/terrain = 0 +12:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +12:3/0/terrains_peering_bit/right_side = 0 +12:3/0/terrains_peering_bit/bottom_side = 0 +12:3/0/terrains_peering_bit/top_side = 0 13:3/0 = 0 +13:3/0/terrain_set = 0 +13:3/0/terrain = 0 +13:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +13:3/0/terrains_peering_bit/right_side = 0 +13:3/0/terrains_peering_bit/bottom_side = 0 +13:3/0/terrains_peering_bit/left_side = 0 15:3/0 = 0 +15:3/0/terrain_set = 0 +15:3/0/terrain = 0 +15:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +15:3/0/terrains_peering_bit/right_side = 0 +15:3/0/terrains_peering_bit/bottom_side = 0 16:3/0 = 0 +16:3/0/terrain_set = 0 +16:3/0/terrain = 0 +16:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +16:3/0/terrains_peering_bit/bottom_side = 0 +16:3/0/terrains_peering_bit/left_side = 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, -3.53553, 16, -13.7886, 10.4298, -16, 1.41421) +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, 5.65685, 12.9047, 12.7279, 5.83363, 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, 1.94454, 12.3744, 11.844, 5.3033, 16, -2.65165, 16, -11.3137, 12.0208, -16, 1.59099) 6:4/0 = 0 +6:4/0/terrain_set = 0 +6:4/0/terrain = 0 +6:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, -2.2981, -16, -1.59099, 16, -16, 16) +6:4/0/terrains_peering_bit/right_side = 0 +6:4/0/terrains_peering_bit/bottom_right_corner = 0 +6:4/0/terrains_peering_bit/bottom_side = 0 +6:4/0/terrains_peering_bit/top_side = 0 7:4/0 = 0 +7:4/0/terrain_set = 0 +7:4/0/terrain = 0 +7:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(3.0052, -16, 16, -16, 16, 16, 3.53553, 16) +7:4/0/terrains_peering_bit/bottom_side = 0 +7:4/0/terrains_peering_bit/bottom_left_corner = 0 +7:4/0/terrains_peering_bit/left_side = 0 +7:4/0/terrains_peering_bit/top_side = 0 9:4/0 = 0 +9:4/0/terrain_set = 0 +9:4/0/terrain = 0 +9:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +9:4/0/terrains_peering_bit/right_side = 0 +9:4/0/terrains_peering_bit/left_side = 0 +9:4/0/terrains_peering_bit/top_left_corner = 0 +9:4/0/terrains_peering_bit/top_side = 0 10:4/0 = 0 +10:4/0/terrain_set = 0 +10:4/0/terrain = 0 +10:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +10:4/0/terrains_peering_bit/right_side = 0 +10:4/0/terrains_peering_bit/left_side = 0 +10:4/0/terrains_peering_bit/top_side = 0 +10:4/0/terrains_peering_bit/top_right_corner = 0 12:4/0 = 0 +12:4/0/terrain_set = 0 +12:4/0/terrain = 0 +12:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +12:4/0/terrains_peering_bit/right_side = 0 +12:4/0/terrains_peering_bit/left_side = 0 +12:4/0/terrains_peering_bit/top_side = 0 13:4/0 = 0 +13:4/0/terrain_set = 0 +13:4/0/terrain = 0 +13:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16) +13:4/0/terrains_peering_bit/bottom_side = 0 +13:4/0/terrains_peering_bit/left_side = 0 +13:4/0/terrains_peering_bit/top_side = 0 15:4/0 = 0 +15:4/0/terrain_set = 0 +15:4/0/terrain = 0 +15:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -2.65165, 16, -11.3137, 12.0208, -16, 1.59099) +15:4/0/terrains_peering_bit/right_side = 0 +15:4/0/terrains_peering_bit/top_side = 0 16:4/0 = 0 +16:4/0/terrain_set = 0 +16:4/0/terrain = 0 +16:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 5.65685, 12.9047, 12.7279, 5.83363, 16, -16, 16) +16:4/0/terrains_peering_bit/left_side = 0 +16:4/0/terrains_peering_bit/top_side = 0 + +[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_6oe8c"] +texture = ExtResource("5_j5rfa") +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_161qu"] +texture = ExtResource("6_06lft") +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_gee14"] 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.631102, 0.356883, 0.225239, 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_u5sy4") +sources/1 = SubResource("TileSetAtlasSource_6oe8c") +sources/2 = SubResource("TileSetAtlasSource_161qu") [sub_resource type="RectangleShape2D" id="RectangleShape2D_8cj0n"] size = Vector2(52, 20) @@ -74,16 +434,37 @@ script = ExtResource("1_lnu2h") unique_name_in_owner = true script = ExtResource("2_w84c1") -[node name="Player" parent="." instance=ExtResource("2_5tj0f")] -position = Vector2(580, 368) +[node name="skylayer" type="Parallax2D" parent="."] +repeat_size = Vector2(320, 180) + +[node name="Sprite2D" type="Sprite2D" parent="skylayer"] +position = Vector2(160, 90) +texture = ExtResource("3_en3le") + +[node name="farlayer" type="Parallax2D" parent="."] +scroll_scale = Vector2(1.2, 1) +repeat_size = Vector2(320, 0) + +[node name="Sprite2D" type="Sprite2D" parent="farlayer"] +texture_filter = 1 +position = Vector2(160, 400) +texture = ExtResource("4_0xw4c") + +[node name="Parallax2D" type="Parallax2D" parent="."] +repeat_size = Vector2(320, 0) + +[node name="Sprite2D" type="Sprite2D" parent="Parallax2D"] +texture_filter = 1 +position = Vector2(160, 400) +texture = ExtResource("5_mv16k") [node name="TileMapLayer" type="TileMapLayer" parent="."] texture_filter = 1 -tile_map_data = PackedByteArray(0, 0, 17, 0, 13, 0, 0, 0, 4, 0, 4, 0, 0, 0, 18, 0, 13, 0, 0, 0, 4, 0, 4, 0, 0, 0, 19, 0, 13, 0, 0, 0, 4, 0, 4, 0, 0, 0, 20, 0, 13, 0, 0, 0, 4, 0, 4, 0, 0, 0) +tile_map_data = PackedByteArray("AAAVAA8AAAABAAAAAAAWAA8AAAABAAAAAAAXAA8AAAABAAAAAAAYAA8AAAABAAAAAAAZAA8AAAABAAAAAAAaAA8AAAABAAAAAAAbAA8AAAABAAAAAAAcAA8AAAABAAAAAAAdAA8AAAABAAAAAAAeAA8AAAABAAAAAAAeABAAAAABAAIAAAAdABAAAAAGAAAAAAAdABEAAAACAAIAAAAcABEAAAAGAAAAAAAbABEAAAAAAAEAAAAbABAAAAAHAAAAAAAaABAAAAABAAIAAAAZABAAAAABAAIAAAAcABAAAAABAAEAAAAgAA4AAAAEAAAAAAAjAA0AAAAEAAQAAAAmAAwAAAAEAAQAAAAqAAwAAAABAAAAAAAqAA0AAAABAAEAAAArAA0AAAABAAEAAAAsAA0AAAABAAEAAAAsAAwAAAAHAAEAAAArAAwAAAABAAAAAAAqAA4AAAABAAEAAAAqAA8AAAABAAIAAAAqABEAAAABAAAAAAAqABIAAAABAAEAAAArABIAAAABAAEAAAArABEAAAAHAAEAAAArABAAAAAAAAEAAAArAA8AAAAHAAAAAAAsAA8AAAABAAEAAAAsAA4AAAABAAEAAAArAA4AAAABAAEAAAAsABIAAAACAAEAAAAsABEAAAAGAAAAAAAsABAAAAABAAEAAAApAA8AAAAKAAQAAAAoAA8AAAABAAQAAAAnAA8AAAAJAAMAAAAnABAAAAACAAIAAAAnABIAAAABAAAAAAAoABIAAAAHAAEAAAApABIAAAABAAEAAAAmABIAAAABAAAAAAAlABIAAAAAAAAAAAAUAA8AAAABAAAAAAATAA8AAAABAAAAAAASAA8AAAABAAAAAAARAA8AAAABAAAAAAAQAA8AAAABAAAAAAAOAA8AAAABAAAAAAAPAA8AAAABAAAAAAANAA8AAAABAAAAAAAMAA8AAAAGAAEAAAAMAA4AAAACAAAAAAALAA4AAAABAAAAAAAKAA4AAAAAAAAAAAAKAA8AAAAHAAEAAAALAA8AAAABAAEAAAAPABAAAAABAAIAAAAOABAAAAABAAIAAAANABAAAAABAAIAAAAMABAAAAABAAIAAAALABAAAAABAAIAAAAKABAAAAABAAIAAAAQABAAAAAHAAAAAAARABAAAAABAAEAAAASABAAAAABAAEAAAATABAAAAABAAEAAAAUABAAAAABAAEAAAAVABAAAAABAAEAAAAWABAAAAABAAEAAAAXABAAAAAGAAAAAAAYABAAAAABAAIAAAATABEAAAABAAEAAAATABIAAAABAAIAAAAUABIAAAABAAIAAAAWABIAAAABAAIAAAAXABIAAAACAAIAAAAXABEAAAACAAEAAAAWABEAAAABAAEAAAAVABEAAAABAAEAAAAUABEAAAABAAEAAAAVABIAAAABAAIAAAASABIAAAABAAIAAAARABIAAAABAAIAAAAQABIAAAAAAAIAAAAQABEAAAAAAAEAAAARABEAAAABAAEAAAASABEAAAABAAEAAAAPAA4AAQAAAAAAAAAjAAwAAQAAAAAAAAAmAAsAAQAAAAAAAAAoAA4AAQAAAAAAAAAsAAsAAAAAAAEAAAAaAA4AAQAAAAAAAAApABEAAAABAAAAAAAoABEAAAAAAAAAAAAqABAAAQAAAAAAAAApABMAAAABAAEAAAAqABMAAAABAAEAAAAoABMAAAABAAEAAAAnABMAAAABAAEAAAAmABMAAAABAAEAAAAlABMAAAAAAAEAAAAlABQAAAAAAAEAAAAlABUAAAAHAAEAAAAlABYAAAABAAIAAAAmABYAAAABAAIAAAAnABYAAAABAAIAAAAnABUAAAABAAEAAAAnABQAAAABAAEAAAAmABQAAAABAAEAAAAmABUAAAABAAEAAAAkABUAAAAAAAAAAAAkABYAAAAAAAIAAAAoABUAAAABAAEAAAApABUAAAABAAEAAAAqABUAAAABAAEAAAApABQAAAABAAEAAAAoABQAAAABAAEAAAArABMAAAABAAEAAAAsABMAAAACAAEAAAAsABQAAAACAAEAAAAsABUAAAACAAEAAAAsABYAAAACAAIAAAArABUAAAABAAEAAAAqABQAAAABAAEAAAArABQAAAABAAEAAAArABYAAAABAAIAAAAqABYAAAABAAIAAAApABYAAAABAAIAAAAoABYAAAABAAIAAAAcABIAAAACAAIAAAAbABIAAAAAAAIAAAAdABUAAAAAAAAAAAAdABYAAAAHAAEAAAAcABYAAAABAAAAAAAeABUAAAACAAAAAAAeABYAAAAGAAEAAAAfABYAAAACAAAAAAAeABcAAAABAAEAAAAdABcAAAABAAEAAAAcABcAAAABAAEAAAAbABYAAAAAAAAAAAAbABcAAAAHAAEAAAAaABcAAAAAAAAAAAAfABcAAAACAAEAAAAfABgAAAAGAAEAAAAeABgAAAABAAEAAAAdABgAAAABAAEAAAAcABgAAAABAAEAAAAbABgAAAABAAEAAAAgABgAAAACAAAAAAAgABkAAAAGAAEAAAAgABoAAAABAAEAAAAhABkAAAACAAAAAAAhABoAAAACAAEAAAAfABoAAAABAAEAAAAeABoAAAABAAEAAAAdABoAAAABAAEAAAAcABoAAAABAAEAAAAbABoAAAABAAEAAAAcABkAAAABAAEAAAAdABkAAAABAAEAAAAeABkAAAABAAEAAAAfABkAAAABAAEAAAAbABkAAAABAAEAAAAaABkAAAAHAAEAAAAZABkAAAAAAAAAAAAZABoAAAAHAAEAAAAaABoAAAABAAEAAAAXABoAAAABAAAAAAAYABoAAAABAAAAAAAWABoAAAABAAAAAAAVABoAAAABAAAAAAAUABoAAAABAAAAAAATABoAAAABAAAAAAASABoAAAAAAAAAAAAaABgAAAAAAAEAAAAhABsAAAACAAEAAAAhABwAAAACAAIAAAAgABwAAAAGAAAAAAAfABwAAAABAAEAAAAeABwAAAABAAEAAAAdABwAAAABAAEAAAAcABwAAAABAAEAAAAbABwAAAABAAEAAAAaABwAAAABAAEAAAAZABsAAAABAAEAAAAYABsAAAABAAEAAAAXABsAAAABAAEAAAAWABsAAAABAAEAAAAVABsAAAABAAEAAAAUABsAAAABAAEAAAATABsAAAABAAEAAAASABsAAAAAAAEAAAASABwAAAAAAAEAAAATABwAAAABAAEAAAAUAB0AAAABAAEAAAAVAB0AAAABAAEAAAAWAB0AAAABAAEAAAAXAB0AAAABAAEAAAAYAB0AAAABAAEAAAAaAB0AAAABAAEAAAAZAB0AAAABAAEAAAAcAB0AAAABAAEAAAAbAB0AAAABAAEAAAAdAB0AAAABAAEAAAAeAB4AAAABAAIAAAAfAB4AAAABAAIAAAAgAB4AAAACAAIAAAAgAB0AAAACAAEAAAAgABsAAAABAAEAAAAfABsAAAABAAEAAAAeABsAAAABAAEAAAAdABsAAAABAAEAAAAcABsAAAABAAEAAAAUABwAAAABAAEAAAAVABwAAAABAAEAAAAWABwAAAABAAEAAAAXABwAAAABAAEAAAAYABwAAAABAAEAAAAZABwAAAABAAEAAAAbABsAAAABAAEAAAAaABsAAAABAAEAAAASAB0AAAAAAAEAAAATAB0AAAABAAEAAAAeAB0AAAABAAEAAAAfAB0AAAABAAEAAAAdAB4AAAABAAIAAAAcAB4AAAABAAIAAAAbAB4AAAABAAIAAAASAB4AAAAAAAIAAAATAB4AAAABAAIAAAAUAB4AAAABAAIAAAAVAB4AAAABAAIAAAAWAB4AAAABAAIAAAAXAB4AAAABAAIAAAAYAB4AAAABAAIAAAAZAB4AAAABAAIAAAAaAB4AAAABAAIAAAAJAA8AAAABAAAAAAAIAA8AAAABAAAAAAAHAA8AAAABAAAAAAAGAA8AAAABAAAAAAAFAA8AAAABAAAAAAAGABAAAAABAAIAAAAHABAAAAABAAIAAAAIABAAAAABAAIAAAAJABAAAAABAAIAAAD//w8AAAAAAAAAAAAAAA8AAAABAAAAAAABAA8AAAABAAAAAAACAA8AAAABAAAAAAADAA8AAAABAAAAAAAEAA8AAAABAAAAAAAFABAAAAABAAIAAAAEABAAAAABAAIAAAADABAAAAABAAIAAAACABAAAAABAAIAAAABABAAAAABAAIAAAAAABAAAAABAAIAAAD//xAAAAAAAAIAAAD+/w0AAAACAAQAAAD9/w0AAAABAAQAAAD8/w0AAAAAAAQAAAAfAA8AAAABAAAAAAAgAA8AAAAJAAAAAAAhAA8AAAABAAAAAAAiAA8AAAABAAAAAAAjAA8AAAABAAAAAAAkAA8AAAABAAAAAAAlAA8AAAABAAAAAAAmAA8AAAABAAAAAAAmABAAAAABAAIAAAAlABAAAAABAAIAAAAkABAAAAABAAIAAAAjABEAAAACAAIAAAAiABEAAAABAAIAAAAhABEAAAABAAIAAAAgABEAAAABAAIAAAAfABEAAAAAAAIAAAAfABAAAAAHAAAAAAAiABAAAAABAAEAAAAjABAAAAAGAAAAAAAgABAAAAABAAEAAAAhABAAAAABAAEAAAAsAAkAAAAAAAAAAAAsAAoAAAAAAAEAAAAtAAkAAAABAAAAAAAuAAkAAAABAAAAAAAvAAkAAAACAAAAAAAvAAoAAAACAAEAAAAvAAsAAAACAAEAAAAvAAwAAAACAAEAAAAvAA0AAAACAAEAAAAvAA4AAAACAAEAAAAvAA8AAAACAAEAAAAvABAAAAACAAEAAAAvABEAAAACAAIAAAAuABEAAAABAAIAAAAtABEAAAABAAIAAAAtAAoAAAABAAEAAAAtABAAAAABAAEAAAAuABAAAAABAAEAAAAuAA8AAAABAAEAAAAuAA4AAAABAAEAAAAuAA0AAAABAAEAAAAuAAwAAAABAAEAAAAuAAsAAAABAAEAAAAuAAoAAAABAAEAAAAtAAsAAAABAAEAAAAtAAwAAAABAAEAAAAtAA0AAAABAAEAAAAtAA4AAAABAAEAAAAtAA8AAAABAAEAAAApAAwAAAAAAAAAAAApAA0AAAAAAAEAAAApAA4AAAAAAAEAAAAKAA0AAQAAAAAAAAAGAA4AAQAAAAAAAAD9/wwAAgAAAAEAAAD9/wsAAgAAAAAAAAD+/wwAAQAAAAAAAAABAA4AAQAAAAAAAAA=") tile_set = SubResource("TileSet_gee14") [node name="StaticBody2D" type="StaticBody2D" parent="."] -position = Vector2(610, 430) +position = Vector2(688, 732) scale = Vector2(2.47859, 1.32127) metadata/_edit_group_ = true @@ -91,31 +472,51 @@ metadata/_edit_group_ = true shape = SubResource("RectangleShape2D_8cj0n") [node name="ground" type="StaticBody2D" parent="."] -position = Vector2(583, 553) +position = Vector2(906, 1076) metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="ground"] shape = SubResource("WorldBoundaryShape2D_8cj0n") -[node name="Crate" parent="." instance=ExtResource("4_syc2o")] +[node name="crates" type="Node2D" parent="."] position = Vector2(592, 261) -[node name="Crate2" parent="." instance=ExtResource("4_syc2o")] -position = Vector2(554, 287) +[node name="Crate" parent="crates" instance=ExtResource("4_syc2o")] -[node name="Crate3" parent="." instance=ExtResource("4_syc2o")] -position = Vector2(671, 320) +[node name="Crate2" parent="crates" instance=ExtResource("4_syc2o")] +position = Vector2(-38, 26) -[node name="Crate4" parent="." instance=ExtResource("4_syc2o")] -position = Vector2(640, 382) +[node name="Crate3" parent="crates" instance=ExtResource("4_syc2o")] +position = Vector2(79, 59) + +[node name="Crate4" parent="crates" instance=ExtResource("4_syc2o")] +position = Vector2(48, 121) + +[node name="Player" parent="." instance=ExtResource("2_5tj0f")] +position = Vector2(580, 368) [node name="triggers" type="Node2D" parent="."] [node name="player hurt" parent="triggers" instance=ExtResource("2_yqjtg")] -position = Vector2(872, 521) +position = Vector2(303, 772) effect = "player_hurt" [node name="trigger" parent="triggers" instance=ExtResource("2_yqjtg")] -position = Vector2(389, 519) +position = Vector2(466, 733) + +[node name="coins" type="Node2D" parent="."] +position = Vector2(348, 438) + +[node name="Coin" parent="coins" instance=ExtResource("12_nwobp")] +position = Vector2(53, 0) + +[node name="Coin2" parent="coins" instance=ExtResource("12_nwobp")] +position = Vector2(28, 0) + +[node name="Coin3" parent="coins" instance=ExtResource("12_nwobp")] + +[node name="Coin4" parent="coins" instance=ExtResource("12_nwobp")] +position = Vector2(-69, 29) +script = null [connection signal="areaTriggerSignal" from="triggers/player hurt" to="." method="_on_trigger"] diff --git a/scenes/player.tscn b/scenes/player.tscn index e86f4ac..46c8ea9 100644 --- a/scenes/player.tscn +++ b/scenes/player.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=28 format=3 uid="uid://b5p1mlv4c1olv"] -[ext_resource type="Script" uid="uid://cnwga6l2btdbk" path="res://scripts/player.gd" id="1_bqfhv"] +[ext_resource type="Script" path="res://scripts/player.gd" id="1_bqfhv"] [ext_resource type="Texture2D" uid="uid://daf4mmxa2xsjv" path="res://assets/graphics/player/jump_fall/player jump 48x48(1).png" id="2_dqkch"] [ext_resource type="Texture2D" uid="uid://djtlpe43a18d5" path="res://assets/graphics/player/idle/Player Idle 48x48.png" id="2_g2els"] [ext_resource type="Texture2D" uid="uid://dctuuekg8fi6i" path="res://assets/graphics/player/run/player run 48x48.png" id="3_qhqgy"] @@ -208,4 +208,7 @@ sprite_frames = SubResource("SpriteFrames_jej6c") animation = &"jump" autoplay = "idle" +[node name="Camera2D" type="Camera2D" parent="."] +offset = Vector2(0, -40) + [connection signal="animation_finished" from="PlayerGraphic" to="." method="_on_animation_finished"] diff --git a/scripts/bullet.gd b/scripts/bullet.gd index 75b77cc..35aa4cc 100644 --- a/scripts/bullet.gd +++ b/scripts/bullet.gd @@ -1,4 +1,5 @@ class_name Bullet extends Area2D +@onready var bullet_graphic: Sprite2D = $BulletGraphic var speed:float = 700 @@ -6,6 +7,10 @@ signal bulletDamageSignal(body,bullet) func setSpeed(value:float): speed = value + if value<0: + bullet_graphic.flip_h = true + if value>0: + bullet_graphic.flip_h = false func _physics_process(delta: float) -> void: position += transform.x * speed * delta @@ -16,3 +21,4 @@ func _on_body_entered(body: Node2D) -> void: if body.is_in_group("shootables"): bulletDamageSignal.emit(body,self) + diff --git a/scripts/coin.gd b/scripts/coin.gd new file mode 100644 index 0000000..9f1150b --- /dev/null +++ b/scripts/coin.gd @@ -0,0 +1,8 @@ +class_name Coin extends Area2D + +signal coinCollectedSignal(body, coin) + + +func _on_body_entered(body: Node2D) -> void: + print("coin collision") + coinCollectedSignal.emit(body, self) diff --git a/scripts/gamecontroller.gd b/scripts/gamecontroller.gd index d7c13e8..e1ecac2 100644 --- a/scripts/gamecontroller.gd +++ b/scripts/gamecontroller.gd @@ -25,3 +25,6 @@ func bulletDamage(body, bullet): print("gc knows about bullet hit") body.queue_free() #apply_central_impulse(Vector2(shoveDirection,0)*700) + +func coinCollected(body,coin): + print("gc knows coin collected") diff --git a/scripts/player.gd b/scripts/player.gd index bd9a442..3013919 100644 --- a/scripts/player.gd +++ b/scripts/player.gd @@ -10,7 +10,7 @@ class_name Player extends CharacterBody2D const SPEED = 300 const JUMP_VELOCITY = -400.0 -@export var acceleration:int = 5 +@export var acceleration:int = 15 var upJump:bool = false var direction diff --git a/scripts/scene_manager.gd b/scripts/scene_manager.gd index 6eb41d8..ccda8e7 100644 --- a/scripts/scene_manager.gd +++ b/scripts/scene_manager.gd @@ -4,6 +4,8 @@ var totalAllowedBullets = 7 var bullet = preload("res://scenes/bullet.tscn") @onready var game: Node2D = $".." @onready var triggers: Node2D = $"../triggers" +@onready var coins: Node2D = $"../coins" + # Called when the node enters the scene tree for the first time. func _ready() -> void: @@ -13,6 +15,13 @@ func _ready() -> void: obj.areaTriggerSignal.connect(game._on_trigger) + if coins: + print("found coins") + for obj in coins.get_children(): + if obj is Coin: + print("coin collected") + obj.coinCollectedSignal.connect(game.coinCollected) + # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta: float) -> void: pass