Compare commits

...
3 Commits
31 changed files with 1867 additions and 43 deletions

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 908 B

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://3nqjbe8l8lb"
path="res://.godot/imported/slime_green.png-3dde82d6daac4b061a10b675e2b5c05f.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/enimes/slime_green.png"
dest_files=["res://.godot/imported/slime_green.png-3dde82d6daac4b061a10b675e2b5c05f.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: 500 B

+40
View File
@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://33xtjwbvma3i"
path="res://.godot/imported/coin.png-ac7798e0a059d31a3964a2be719e8eed.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/pickup/coin.png"
dest_files=["res://.godot/imported/coin.png-ac7798e0a059d31a3964a2be719e8eed.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

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bululkhh0pe48"
path="res://.godot/imported/Player Death 64x64.png-0c6ff54e7d9aad74b66dce47376541f8.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/player/death/Player Death 64x64.png"
dest_files=["res://.godot/imported/Player Death 64x64.png-0c6ff54e7d9aad74b66dce47376541f8.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.4 KiB

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cvm8klajafilg"
path="res://.godot/imported/Player Hurt 48x48.png-a720e51cb19103e76b22ab6c1b81302d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/graphics/player/hurt/Player Hurt 48x48.png"
dest_files=["res://.godot/imported/Player Hurt 48x48.png-a720e51cb19103e76b22ab6c1b81302d.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
+14
View File
@@ -15,6 +15,10 @@ run/main_scene="uid://diebydbkt7p12"
config/features=PackedStringArray("4.6", "Forward Plus")
config/icon="res://icon.svg"
[autoload]
Gamecontroller="*uid://bg2xlgku08s3n"
[display]
window/size/viewport_width=480
@@ -54,6 +58,16 @@ Shoot={
"events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":1,"position":Vector2(355, 24),"global_position":Vector2(364, 72),"factor":1.0,"button_index":1,"canceled":false,"pressed":true,"double_click":false,"script":null)
]
}
save={
"deadzone": 0.2,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":78,"key_label":0,"unicode":110,"location":0,"echo":false,"script":null)
]
}
load={
"deadzone": 0.2,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":77,"key_label":0,"unicode":109,"location":0,"echo":false,"script":null)
]
}
[physics]
+1
View File
@@ -23,4 +23,5 @@ scale = Vector2(0.15249251, 0.15249251)
texture = ExtResource("2_y25gk")
offset = Vector2(31.430838, 22.801313)
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
+114
View File
@@ -0,0 +1,114 @@
[gd_scene format=3 uid="uid://bp5adp7uhi5e0"]
[ext_resource type="Script" uid="uid://ci5pqwcmdavsg" path="res://scripts/coin.gd" id="1_i64fm"]
[ext_resource type="Texture2D" uid="uid://33xtjwbvma3i" path="res://assets/graphics/pickup/coin.png" id="2_11l1o"]
[sub_resource type="AtlasTexture" id="AtlasTexture_d14el"]
atlas = ExtResource("2_11l1o")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_1ikuy"]
atlas = ExtResource("2_11l1o")
region = Rect2(16, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_wnlwo"]
atlas = ExtResource("2_11l1o")
region = Rect2(32, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_jig8b"]
atlas = ExtResource("2_11l1o")
region = Rect2(48, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_xmuha"]
atlas = ExtResource("2_11l1o")
region = Rect2(64, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_kfxoj"]
atlas = ExtResource("2_11l1o")
region = Rect2(80, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_jsmju"]
atlas = ExtResource("2_11l1o")
region = Rect2(96, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_s0mny"]
atlas = ExtResource("2_11l1o")
region = Rect2(112, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_7cc30"]
atlas = ExtResource("2_11l1o")
region = Rect2(128, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_rojmm"]
atlas = ExtResource("2_11l1o")
region = Rect2(144, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_ls27i"]
atlas = ExtResource("2_11l1o")
region = Rect2(160, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_ssuvv"]
atlas = ExtResource("2_11l1o")
region = Rect2(176, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_6jg3o"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_d14el")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1ikuy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wnlwo")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jig8b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xmuha")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kfxoj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jsmju")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_s0mny")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7cc30")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rojmm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ls27i")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ssuvv")
}],
"loop": true,
"name": &"default",
"speed": 12.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_rsyy1"]
radius = 5.0990195
[node name="Coin" type="Area2D" unique_id=276927475]
script = ExtResource("1_i64fm")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=483503789]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_6jg3o")
autoplay = "default"
frame_progress = 0.58675826
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=734866799]
shape = SubResource("CircleShape2D_rsyy1")
debug_color = Color(0.627451, 1, 0.20392157, 0.34509805)
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
+76 -26
View File
@@ -1,6 +1,5 @@
[gd_scene format=4 uid="uid://diebydbkt7p12"]
[ext_resource type="Script" uid="uid://bg2xlgku08s3n" path="res://scripts/gameController.gd" id="1_lnu2h"]
[ext_resource type="Script" uid="uid://c3hbvk17cnfti" path="res://scripts/SceneManager.gd" id="2_iywne"]
[ext_resource type="PackedScene" uid="uid://xvv1nyl3ny2g" path="res://scenes/crate.tscn" id="2_lnu2h"]
[ext_resource type="PackedScene" uid="uid://dyxqdgvctjshx" path="res://scenes/player.tscn" id="3_iywne"]
@@ -12,6 +11,9 @@
[ext_resource type="Texture2D" uid="uid://d1c8j2ed3yl7w" path="res://assets/graphics/environment/terrain/BG/trees.png" id="5_dinhu"]
[ext_resource type="Texture2D" uid="uid://ccbahuxw6vcgr" path="res://assets/graphics/environment/terrain/veg_32x32.png" id="5_vtaks"]
[ext_resource type="PackedScene" uid="uid://bmkh4wsfm3fbq" path="res://scenes/npc_charector.tscn" id="6_p57ef"]
[ext_resource type="PackedScene" uid="uid://bp5adp7uhi5e0" path="res://scenes/coin.tscn" id="12_dinhu"]
[ext_resource type="PackedScene" uid="uid://dh7cp51oyyl76" path="res://scenes/slime.tscn" id="13_kvuet"]
[ext_resource type="PackedScene" uid="uid://c1dgwb1r7e2fg" path="res://scenes/ui.tscn" id="14_trtic"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_gee14"]
texture = ExtResource("3_u5sy4")
@@ -406,42 +408,43 @@ size = Vector2(74, 20)
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_lbhrr"]
[node name="Game" type="Node2D" unique_id=239599901]
script = ExtResource("1_lnu2h")
[node name="Background" type="Node2D" parent="." unique_id=1286490684]
[node name="Sky" type="Parallax2D" parent="Background" unique_id=891090920]
repeat_size = Vector2(480, 270)
[node name="Sprite2D" type="Sprite2D" parent="Background/Sky" unique_id=174294111]
texture = ExtResource("3_vtaks")
offset = Vector2(240, 135)
[node name="Mid-Ground" type="Parallax2D" parent="Background" unique_id=373678392]
scroll_scale = Vector2(1.2, 1)
repeat_size = Vector2(480, 0)
[node name="Sprite2D" type="Sprite2D" parent="Background/Mid-Ground" unique_id=1230203335]
texture = ExtResource("4_kvpfn")
offset = Vector2(240, 500)
[node name="Fore-Ground" type="Parallax2D" parent="Background" unique_id=1080480220]
scroll_scale = Vector2(1.4, 1)
repeat_size = Vector2(480, 0)
[node name="Sprite2D" type="Sprite2D" parent="Background/Fore-Ground" unique_id=505759401]
texture = ExtResource("5_dinhu")
offset = Vector2(240, 500)
[node name="SceneManager" type="Node2D" parent="." unique_id=1426606514]
unique_name_in_owner = true
script = ExtResource("2_iywne")
[node name="Sky" type="Parallax2D" parent="." unique_id=891090920]
repeat_size = Vector2(480, 270)
[node name="Sprite2D" type="Sprite2D" parent="Sky" unique_id=174294111]
texture = ExtResource("3_vtaks")
offset = Vector2(240, 135)
[node name="Mid-Ground" type="Parallax2D" parent="." unique_id=373678392]
scroll_scale = Vector2(1.2, 1)
repeat_size = Vector2(480, 0)
[node name="Sprite2D" type="Sprite2D" parent="Mid-Ground" unique_id=1230203335]
texture = ExtResource("4_kvpfn")
offset = Vector2(240, 500)
[node name="Fore-Ground" type="Parallax2D" parent="." unique_id=1080480220]
scroll_scale = Vector2(1.4, 1)
repeat_size = Vector2(480, 0)
[node name="Sprite2D" type="Sprite2D" parent="Fore-Ground" unique_id=505759401]
texture = ExtResource("5_dinhu")
offset = Vector2(240, 500)
[node name="TileMapLayer" type="TileMapLayer" parent="." unique_id=740071362]
texture_filter = 1
tile_map_data = PackedByteArray("AAAEABMAAAAAAAIAAAAFABMAAAABAAIAAAAGABMAAAABAAIAAAAHABMAAAABAAIAAAAIABMAAAABAAIAAAAJABMAAAABAAIAAAAKABMAAAABAAIAAAALABMAAAAJAAQAAAAMABMAAAABAAQAAAANABMAAAABAAQAAAAOABMAAAABAAQAAAAPABMAAAABAAQAAAAQABMAAAABAAQAAAARABMAAAABAAQAAAASABMAAAABAAQAAAATABMAAAABAAQAAAAUABMAAAABAAQAAAAVABMAAAABAAQAAAAWABMAAAABAAQAAAAXABMAAAAKAAQAAAAYABMAAAABAAIAAAAZABMAAAAJAAQAAAAaABMAAAAMAAQAAAAbABMAAAABAAQAAAAcABMAAAABAAQAAAAdABMAAAABAAQAAAAeABMAAAABAAQAAAAfABMAAAACAAQAAAAgABIAAAAEAAEAAAAgABEAAAAEAAEAAAAgABAAAAAHAAMAAAAgAA8AAAACAAEAAAAgAA4AAAACAAEAAAAgAA0AAAACAAEAAAAgAAwAAAAHAAQAAAAgAAsAAAAEAAEAAAAgAAoAAAAEAAEAAAAgAAkAAAAEAAEAAAAgAAgAAAAEAAEAAAAgAAcAAAAEAAE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AAoAAQAAAAAAAAAFAA4AAQAAAAEAAAAFAA0AAQAAAAAAAAAFAAkAAAAGAAAAAAAGAAkAAAAHAAAAAAAHAAkAAAAGAAAAAAAGAAgAAAAGAAAAAAAFAAgAAAAGAAAAAAAGAAcAAAABAAAAAAAFAAcAAAABAAAAAAAHAAgAAAAGAAAAAAAIAAgAAAAGAAAAAAAIAAcAAAABAAAAAAAIAAkAAAAHAAAAAAAHAAcAAAABAAAAAAAJAAcAAAACAAAAAAAJAAgAAAAGAAEAAAAJAAkAAAAHAAAAAAAKAAkAAAAGAAAAAAAKAAoAAAACAAIAAAAJAAoAAAABAAIAAAAIAAoAAAAKAAEAAAAHAAoAAAAGAAAAAAAGAAoAAAAGAAAAAAAFAAoAAAAGAAAAAAAFAAsAAAABAAIAAAAGAAsAAAABAAIAAAAHAAsAAAABAAIAAAAIAAsAAAACAAIAAAAKAAgAAAABAAAAAAALAAgAAAABAAAAAAAMAAgAAAAHAAEAAAANAAgAAAAGAAAAAAAMAAkAAAAHAAAAAAALAAkAAAABAAIAAAAMAAcAAAAAAAAAAAANAAcAAAAHAAEAAAAOAAYAAAAJAAMAAAAPAAYAAAACAAQAAAAOAAcAAAACAAEAAAANAAYAAAAAAAAAAAAOAAgAAAAQAAEAAAAPAAgAAAABAAAAAAAOAAkAAAABAAIAAAAPAAkAAAABAAIAAAAQAAgAAAAJAAMAAAARAAgAAAAKAAQAAAAQAAkAAAACAAIAAAANAAkAAAAGAAAAAAANAAoAAAACAAEAAAAMAAoAAAAAAAEAAAAMAAsAAAAAAAIAAAANAAsAAAACAAIAAAASAAcAAAACAAAAAAASAAgAAAACAAIAAAARAAcAAAAAAAAAAAA=")
tile_set = SubResource("TileSet_0tnpc")
[node name="Player" parent="." unique_id=401513938 instance=ExtResource("3_iywne")]
position = Vector2(536, 418)
position = Vector2(509, 420)
[node name="Triggers" type="Node2D" parent="." unique_id=1025206878]
@@ -487,3 +490,50 @@ shape = SubResource("WorldBoundaryShape2D_lbhrr")
[node name="NPCCharector" parent="." unique_id=912777798 instance=ExtResource("6_p57ef")]
position = Vector2(460, 422)
[node name="Coins" type="Node2D" parent="." unique_id=252015264]
[node name="Coin" parent="Coins" unique_id=276927475 instance=ExtResource("12_dinhu")]
position = Vector2(575, 551)
[node name="Coin2" parent="Coins" unique_id=1644658619 instance=ExtResource("12_dinhu")]
position = Vector2(624, 505)
[node name="Coin3" parent="Coins" unique_id=1698396235 instance=ExtResource("12_dinhu")]
position = Vector2(466, 514)
[node name="Coin4" parent="Coins" unique_id=637616183 instance=ExtResource("12_dinhu")]
position = Vector2(507, 488)
[node name="Coin5" parent="Coins" unique_id=1538621726 instance=ExtResource("12_dinhu")]
position = Vector2(496, 535)
[node name="Coin6" parent="Coins" unique_id=1608922508 instance=ExtResource("12_dinhu")]
position = Vector2(535, 565)
[node name="Coin7" parent="Coins" unique_id=227433727 instance=ExtResource("12_dinhu")]
position = Vector2(420, 464)
[node name="Coin8" parent="Coins" unique_id=466741782 instance=ExtResource("12_dinhu")]
position = Vector2(610, 514)
[node name="Coin9" parent="Coins" unique_id=1670069503 instance=ExtResource("12_dinhu")]
position = Vector2(458, 477)
[node name="Coin10" parent="Coins" unique_id=463607762 instance=ExtResource("12_dinhu")]
position = Vector2(558, 494)
[node name="Slimes" type="Node2D" parent="." unique_id=53042223]
[node name="GreenSlime" parent="Slimes" unique_id=505365009 instance=ExtResource("13_kvuet")]
position = Vector2(927, 600)
[node name="GreenSlime2" parent="Slimes" unique_id=515555767 instance=ExtResource("13_kvuet")]
position = Vector2(834, 536)
[node name="GreenSlime3" parent="Slimes" unique_id=1389734884 instance=ExtResource("13_kvuet")]
position = Vector2(268, 504)
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1382209759]
[node name="UI" parent="CanvasLayer" unique_id=2022682093 instance=ExtResource("14_trtic")]
+480
View File
@@ -0,0 +1,480 @@
[gd_scene format=4 uid="uid://uaucisawthbw"]
[ext_resource type="Script" uid="uid://c3hbvk17cnfti" path="res://scripts/SceneManager.gd" id="1_76toy"]
[ext_resource type="Texture2D" uid="uid://mtmoe6dorgly" path="res://assets/graphics/environment/terrain/BG/sky.png" id="2_8g4ke"]
[ext_resource type="Texture2D" uid="uid://cecj7temgk6x3" path="res://assets/graphics/environment/terrain/BG/mountain.png" id="3_56gwk"]
[ext_resource type="Texture2D" uid="uid://d1c8j2ed3yl7w" path="res://assets/graphics/environment/terrain/BG/trees.png" id="4_ve5ok"]
[ext_resource type="Texture2D" uid="uid://bwyhn0yf61inl" path="res://assets/graphics/environment/terrain/Terrain (32x32).png" id="5_cleqw"]
[ext_resource type="Texture2D" uid="uid://88gtlg51dpyo" path="res://assets/graphics/environment/terrain/mushroom_32x64.png" id="6_wvb8j"]
[ext_resource type="Texture2D" uid="uid://ccbahuxw6vcgr" path="res://assets/graphics/environment/terrain/veg_32x32.png" id="7_g8vcy"]
[ext_resource type="PackedScene" uid="uid://dyxqdgvctjshx" path="res://scenes/player.tscn" id="8_cqal4"]
[ext_resource type="PackedScene" uid="uid://c7i6hsic2uojx" path="res://scenes/trigger.tscn" id="9_o3sye"]
[ext_resource type="PackedScene" uid="uid://xvv1nyl3ny2g" path="res://scenes/crate.tscn" id="10_24ks5"]
[ext_resource type="PackedScene" uid="uid://bmkh4wsfm3fbq" path="res://scenes/npc_charector.tscn" id="11_s4es8"]
[ext_resource type="PackedScene" uid="uid://c1dgwb1r7e2fg" path="res://scenes/ui.tscn" id="12_8g4ke"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_gee14"]
texture = ExtResource("5_cleqw")
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, 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, 0.63726044, -16, 0.63726044)
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, -16, 16)
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, -7.0098763, -16, 7.6471367, -16, 16, -16, 16, 16, 8.284401, 16, 6.691246, -3.5049381, -7.0098763, -3.5049381, -6.691246, 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/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/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/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/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/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/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/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, -2.8676777, -16, -3.186308, 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
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(0, -16, 16, -16, 16, 16, -0.31863022, 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, -7.0098763, -16, -4.4608307, 13.382492, 7.3285065, 13.063862, 7.6471367, -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/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/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/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/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/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/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/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/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, -16, 16)
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, 1.5931549, 16, 1.9117851, 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, 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, -7.0098763, -16, -6.691246, 5.4167213, 9.240292, 6.0539856, 8.921661, -16, 16, -16, 16, 16, -16, 16)
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, -1.2745247, -16, -1.9117851, -5.7353535, -2.2304153, 2.2304153, 16, 3.8235703, 16, 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(-0.9558945, -16, 16, -16, 16, 16, 0, 16, -16, 16, -16, 2.5490456, -0.31863022, 2.5490456)
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/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/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/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/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/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/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, -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, 10.196182, 7.3285065, 16, -6.372616, 16, -16, 8.921661)
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, 16, -16, 16, -2.2304153, -0.9558945, -1.9117851, -1.5931549, 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(-0.31863022, -16, 16, -16, 16, 16, -0.31863022, 16, -1.2745247, -1.593153, -16, -1.593153, -16, -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/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/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/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/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/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/terrains_peering_bit/left_side = 0
16:4/0/terrains_peering_bit/top_side = 0
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_kvpfn"]
texture = ExtResource("6_wvb8j")
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="TileSetAtlasSource" id="TileSetAtlasSource_dinhu"]
texture = ExtResource("7_g8vcy")
texture_region_size = Vector2i(32, 32)
0:0/0 = 0
0:0/0/terrain_set = 0
0:0/0/terrain = 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="RectangleShape2D" id="RectangleShape2D_8cj0n"]
size = Vector2(74, 20)
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_lbhrr"]
[node name="Game" type="Node2D" unique_id=239599901]
[node name="Background" type="Node2D" parent="." unique_id=1286490684]
[node name="Sky" type="Parallax2D" parent="Background" unique_id=891090920]
repeat_size = Vector2(480, 270)
[node name="Sprite2D" type="Sprite2D" parent="Background/Sky" unique_id=174294111]
texture = ExtResource("2_8g4ke")
offset = Vector2(240, 135)
[node name="Mid-Ground" type="Parallax2D" parent="Background" unique_id=373678392]
scroll_scale = Vector2(1.2, 1)
repeat_size = Vector2(480, 0)
[node name="Sprite2D" type="Sprite2D" parent="Background/Mid-Ground" unique_id=1230203335]
texture = ExtResource("3_56gwk")
offset = Vector2(240, 500)
[node name="Fore-Ground" type="Parallax2D" parent="Background" unique_id=1080480220]
scroll_scale = Vector2(1.4, 1)
repeat_size = Vector2(480, 0)
[node name="Sprite2D" type="Sprite2D" parent="Background/Fore-Ground" unique_id=505759401]
texture = ExtResource("4_ve5ok")
offset = Vector2(240, 500)
[node name="SceneManager" type="Node2D" parent="." unique_id=1426606514]
unique_name_in_owner = true
script = ExtResource("1_76toy")
[node name="TileMapLayer" type="TileMapLayer" parent="." unique_id=740071362]
texture_filter = 1
tile_map_data = PackedByteArray("AAAEABMAAAAJAAQAAAAFABMAAAABAAQAAAAGABMAAAABAAQAAAAHABMAAAABAAQAAAAIABMAAAABAAQAAAAJABMAAAABAAQAAAAKABMAAAABAAQAAAALABMAAAABAAQAAAAMABMAAAABAAQAAAANABMAAAABAAQAAAAOABMAAAABAAQAAAAPABMAAAABAAQAAAAQABMAAAABAAQAAAARABMAAAABAAQAAAASABMAAAABAAQAAAATABMAAAABAAQAAAAUABMAAAABAAQAAAAVABMAAAABAAQAAAAWABMAAAABAAQAAAAXABMAAAABAAQAAAAYABMAAAAKAAQAAAAZABMAAAABAAIAAAAaABMAAAABAAIAAAAbABMAAAABAAIAAAAcABMAAAABAAIAAAAdABMAAAABAAIAAAAeABMAAAABAAIAAAAfABMAAAACAAIAAAAgABIAAAACAAEAAAAgABEAAAACAAEAAAAgABAAAAACAAEAAAAgAA8AAAAHAAMAAAAgAA4AAAACAAEAAAAgAA0AAAAHAAQAAAAgAAwAAAAEAAEAAAAgAAsAAAAEAAEAAAAgAAoAAAAEAAEAAAAgAAkAAAAEAAEAAAAgAAgAAAAEAAEAAAAgAAcA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AAEAAAD9/wMAAAAAAAAAAAD+/wMAAAABAAAAAAD//wMAAAABAAAAAAAAAAMAAAABAAAAAAACAAMAAAAJAAMAAAADAAMAAAABAAQAAAABAAMAAAABAAAAAAADABIAAAAGAAAAAAACABIAAAAGAAAAAAABABIAAAAGAAAAAAAAABIAAAAHAAEAAAD//xIAAAABAAAAAAAAABEAAAAAAAAAAAABABEAAAABAAAAAAACABEAAAABAAAAAAADABEAAAAHAAEAAAADABAAAAAAAAAAAAD9/xIAAAAGAAAAAAD9/xEAAAABAAAAAAD+/xEAAAACAAAAAAD+/xIAAAAGAAEAAAACAAQAAAACAAIAAAABAAQAAAABAAIAAAAAAAQAAAAKAAEAAAD//wQAAAAHAAAAAAD+/wQAAAAGAAAAAAAAAAUAAAACAAIAAAD//wUAAAABAAIAAAD+/wUAAAABAAIAAAD9/wUAAAABAAIAAAD8/wcAAAACAAEAAAD8/wgAAAACAAEAAAD8/wkAAAACAAIAAAD8/w8AAAACAAEAAAD8/w4AAAACAAAAAAA=")
tile_set = SubResource("TileSet_0tnpc")
[node name="Player" parent="." unique_id=401513938 instance=ExtResource("8_cqal4")]
position = Vector2(536, 418)
[node name="Triggers" type="Node2D" parent="." unique_id=1025206878]
[node name="Destroy" parent="Triggers" unique_id=1908774248 instance=ExtResource("9_o3sye")]
position = Vector2(692, 509)
effect = "destroy"
[node name="Bounce" parent="Triggers" unique_id=1627494044 instance=ExtResource("9_o3sye")]
position = Vector2(508, 507)
effect = "teleport"
[node name="powerup" parent="Triggers" unique_id=1667683069 instance=ExtResource("9_o3sye")]
position = Vector2(716, 391)
effect = "powerup"
[node name="Crates" type="Node2D" parent="." unique_id=1303942974]
[node name="Crate" parent="Crates" unique_id=1307809047 instance=ExtResource("10_24ks5")]
position = Vector2(644, 404)
[node name="Crate2" parent="Crates" unique_id=1988562966 instance=ExtResource("10_24ks5")]
position = Vector2(609, 403)
[node name="Crate3" parent="Crates" unique_id=1771442258 instance=ExtResource("10_24ks5")]
position = Vector2(754, 379)
[node name="Level" type="Node2D" parent="." unique_id=219661874]
[node name="Platform" 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/Platform" unique_id=1655047088]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="Floor" type="StaticBody2D" parent="Level" unique_id=426786591]
position = Vector2(601, 622)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/Floor" unique_id=895098891]
shape = SubResource("WorldBoundaryShape2D_lbhrr")
[node name="NPCCharector" parent="." unique_id=912777798 instance=ExtResource("11_s4es8")]
position = Vector2(460, 422)
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=139532618]
[node name="UI" parent="CanvasLayer" unique_id=2022682093 instance=ExtResource("12_8g4ke")]
+480
View File
@@ -0,0 +1,480 @@
[gd_scene format=4 uid="uid://mhrp0em1idx6"]
[ext_resource type="Script" uid="uid://c3hbvk17cnfti" path="res://scripts/SceneManager.gd" id="1_fh4ka"]
[ext_resource type="Texture2D" uid="uid://mtmoe6dorgly" path="res://assets/graphics/environment/terrain/BG/sky.png" id="2_qewby"]
[ext_resource type="Texture2D" uid="uid://cecj7temgk6x3" path="res://assets/graphics/environment/terrain/BG/mountain.png" id="3_bradm"]
[ext_resource type="Texture2D" uid="uid://d1c8j2ed3yl7w" path="res://assets/graphics/environment/terrain/BG/trees.png" id="4_got4s"]
[ext_resource type="Texture2D" uid="uid://bwyhn0yf61inl" path="res://assets/graphics/environment/terrain/Terrain (32x32).png" id="5_e40mx"]
[ext_resource type="Texture2D" uid="uid://88gtlg51dpyo" path="res://assets/graphics/environment/terrain/mushroom_32x64.png" id="6_a114e"]
[ext_resource type="Texture2D" uid="uid://ccbahuxw6vcgr" path="res://assets/graphics/environment/terrain/veg_32x32.png" id="7_y1e0c"]
[ext_resource type="PackedScene" uid="uid://dyxqdgvctjshx" path="res://scenes/player.tscn" id="8_s4dsi"]
[ext_resource type="PackedScene" uid="uid://c7i6hsic2uojx" path="res://scenes/trigger.tscn" id="9_07lh1"]
[ext_resource type="PackedScene" uid="uid://xvv1nyl3ny2g" path="res://scenes/crate.tscn" id="10_6uuvf"]
[ext_resource type="PackedScene" uid="uid://bmkh4wsfm3fbq" path="res://scenes/npc_charector.tscn" id="11_x008a"]
[ext_resource type="PackedScene" uid="uid://c1dgwb1r7e2fg" path="res://scenes/ui.tscn" id="12_qewby"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_gee14"]
texture = ExtResource("5_e40mx")
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, 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, 0.63726044, -16, 0.63726044)
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, -16, 16)
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, -7.0098763, -16, 7.6471367, -16, 16, -16, 16, 16, 8.284401, 16, 6.691246, -3.5049381, -7.0098763, -3.5049381, -6.691246, 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/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/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/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/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/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/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/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, -2.8676777, -16, -3.186308, 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
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(0, -16, 16, -16, 16, 16, -0.31863022, 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, -7.0098763, -16, -4.4608307, 13.382492, 7.3285065, 13.063862, 7.6471367, -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/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/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/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/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/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/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/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/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, -16, 16)
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, 1.5931549, 16, 1.9117851, 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, 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, -7.0098763, -16, -6.691246, 5.4167213, 9.240292, 6.0539856, 8.921661, -16, 16, -16, 16, 16, -16, 16)
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, -1.2745247, -16, -1.9117851, -5.7353535, -2.2304153, 2.2304153, 16, 3.8235703, 16, 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(-0.9558945, -16, 16, -16, 16, 16, 0, 16, -16, 16, -16, 2.5490456, -0.31863022, 2.5490456)
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/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/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/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/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/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/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, -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, 10.196182, 7.3285065, 16, -6.372616, 16, -16, 8.921661)
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, 16, -16, 16, -2.2304153, -0.9558945, -1.9117851, -1.5931549, 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(-0.31863022, -16, 16, -16, 16, 16, -0.31863022, 16, -1.2745247, -1.593153, -16, -1.593153, -16, -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/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/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/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/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/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/terrains_peering_bit/left_side = 0
16:4/0/terrains_peering_bit/top_side = 0
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_kvpfn"]
texture = ExtResource("6_a114e")
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="TileSetAtlasSource" id="TileSetAtlasSource_dinhu"]
texture = ExtResource("7_y1e0c")
texture_region_size = Vector2i(32, 32)
0:0/0 = 0
0:0/0/terrain_set = 0
0:0/0/terrain = 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="RectangleShape2D" id="RectangleShape2D_8cj0n"]
size = Vector2(74, 20)
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_lbhrr"]
[node name="Game" type="Node2D" unique_id=239599901]
[node name="Background" type="Node2D" parent="." unique_id=1286490684]
[node name="Sky" type="Parallax2D" parent="Background" unique_id=891090920]
repeat_size = Vector2(480, 270)
[node name="Sprite2D" type="Sprite2D" parent="Background/Sky" unique_id=174294111]
texture = ExtResource("2_qewby")
offset = Vector2(240, 135)
[node name="Mid-Ground" type="Parallax2D" parent="Background" unique_id=373678392]
scroll_scale = Vector2(1.2, 1)
repeat_size = Vector2(480, 0)
[node name="Sprite2D" type="Sprite2D" parent="Background/Mid-Ground" unique_id=1230203335]
texture = ExtResource("3_bradm")
offset = Vector2(240, 500)
[node name="Fore-Ground" type="Parallax2D" parent="Background" unique_id=1080480220]
scroll_scale = Vector2(1.4, 1)
repeat_size = Vector2(480, 0)
[node name="Sprite2D" type="Sprite2D" parent="Background/Fore-Ground" unique_id=505759401]
texture = ExtResource("4_got4s")
offset = Vector2(240, 500)
[node name="SceneManager" type="Node2D" parent="." unique_id=1426606514]
unique_name_in_owner = true
script = ExtResource("1_fh4ka")
[node name="TileMapLayer" type="TileMapLayer" parent="." unique_id=740071362]
texture_filter = 1
tile_map_data = PackedByteArray("AAAEABMAAAAAAAIAAAAFABMAAAABAAIAAAAGABMAAAABAA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AArAAIAAAACAAAAAAArAAMAAAAGAAEAAAAsAAMAAAACAAAAAAAsAAQAAAAGAAEAAAAtAAQAAAACAAAAAAAtAAUAAAACAAEAAAAtAAYAAAACAAEAAAAuAAcAAAACAAAAAAAuAAgAAAACAAEAAAAuAAkAAAACAAEAAAAuAAoAAAACAAEAAAAuAAsAAAACAAIAAAAtAAsAAAAPAAEAAAAtAAwAAAACAAIAAAAsAA0AAAACAAEAAAAsAA4AAAACAAIAAAAqAA8AAAABAAIAAAApAA8AAAAKAAEAAAApABAAAAAEAAIAAAArAA8AAAACAAIAAAA=")
tile_set = SubResource("TileSet_0tnpc")
[node name="Player" parent="." unique_id=401513938 instance=ExtResource("8_s4dsi")]
position = Vector2(536, 418)
[node name="Triggers" type="Node2D" parent="." unique_id=1025206878]
[node name="Destroy" parent="Triggers" unique_id=1908774248 instance=ExtResource("9_07lh1")]
position = Vector2(692, 509)
effect = "destroy"
[node name="Bounce" parent="Triggers" unique_id=1627494044 instance=ExtResource("9_07lh1")]
position = Vector2(508, 507)
effect = "teleport"
[node name="powerup" parent="Triggers" unique_id=1667683069 instance=ExtResource("9_07lh1")]
position = Vector2(716, 391)
effect = "powerup"
[node name="Crates" type="Node2D" parent="." unique_id=1303942974]
[node name="Crate" parent="Crates" unique_id=1307809047 instance=ExtResource("10_6uuvf")]
position = Vector2(644, 404)
[node name="Crate2" parent="Crates" unique_id=1988562966 instance=ExtResource("10_6uuvf")]
position = Vector2(609, 403)
[node name="Crate3" parent="Crates" unique_id=1771442258 instance=ExtResource("10_6uuvf")]
position = Vector2(754, 379)
[node name="Level" type="Node2D" parent="." unique_id=219661874]
[node name="Platform" 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/Platform" unique_id=1655047088]
shape = SubResource("RectangleShape2D_8cj0n")
[node name="Floor" type="StaticBody2D" parent="Level" unique_id=426786591]
position = Vector2(601, 622)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/Floor" unique_id=895098891]
shape = SubResource("WorldBoundaryShape2D_lbhrr")
[node name="NPCCharector" parent="." unique_id=912777798 instance=ExtResource("11_x008a")]
position = Vector2(460, 422)
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=832652357]
[node name="UI" parent="CanvasLayer" unique_id=2022682093 instance=ExtResource("12_qewby")]
+188 -1
View File
@@ -3,15 +3,73 @@
[ext_resource type="Script" uid="uid://ctm4xm3lnquco" path="res://scripts/player.gd" id="1_3vyb7"]
[ext_resource type="Texture2D" uid="uid://cvcfc7qj6sxfp" path="res://assets/graphics/player/jump_fall/player jump 48x48.png" id="2_dqkch"]
[ext_resource type="Texture2D" uid="uid://cy1khw337wx4h" path="res://assets/graphics/player/idle/Player Idle 48x48(1).png" id="2_g2els"]
[ext_resource type="Texture2D" uid="uid://bululkhh0pe48" path="res://assets/graphics/player/death/Player Death 64x64.png" id="2_tuyoq"]
[ext_resource type="Texture2D" uid="uid://cvs62nydereyb" path="res://assets/graphics/player/running/player run 48x48(1).png" id="3_qhqgy"]
[ext_resource type="Texture2D" uid="uid://cvm8klajafilg" path="res://assets/graphics/player/hurt/Player Hurt 48x48.png" id="4_fjrip"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_dqkch"]
height = 34.0
[sub_resource type="AtlasTexture" id="AtlasTexture_l71n6"]
atlas = ExtResource("2_tuyoq")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ke2ow"]
atlas = ExtResource("2_tuyoq")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ujl30"]
atlas = ExtResource("2_tuyoq")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_31cv2"]
atlas = ExtResource("2_tuyoq")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_pf23h"]
atlas = ExtResource("2_tuyoq")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_dt7fs"]
atlas = ExtResource("2_tuyoq")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_wqfne"]
atlas = ExtResource("2_tuyoq")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_wnwbv"]
atlas = ExtResource("2_tuyoq")
region = Rect2(336, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_gl8cc"]
atlas = ExtResource("2_tuyoq")
region = Rect2(384, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_487ah"]
atlas = ExtResource("2_tuyoq")
region = Rect2(432, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_i4ail"]
atlas = ExtResource("2_dqkch")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_md1ol"]
atlas = ExtResource("4_fjrip")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_bj30b"]
atlas = ExtResource("4_fjrip")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_jc3p3"]
atlas = ExtResource("4_fjrip")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_hax0n"]
atlas = ExtResource("4_fjrip")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_qhqgy"]
atlas = ExtResource("2_g2els")
region = Rect2(0, 0, 48, 48)
@@ -92,10 +150,85 @@ region = Rect2(288, 0, 48, 48)
atlas = ExtResource("3_qhqgy")
region = Rect2(336, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_t4otl"]
atlas = ExtResource("2_tuyoq")
region = Rect2(432, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_j2b1d"]
atlas = ExtResource("2_tuyoq")
region = Rect2(384, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_cs1tg"]
atlas = ExtResource("2_tuyoq")
region = Rect2(336, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_2dvfe"]
atlas = ExtResource("2_tuyoq")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_giy8y"]
atlas = ExtResource("2_tuyoq")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_fdfoy"]
atlas = ExtResource("2_tuyoq")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_hhpqf"]
atlas = ExtResource("2_tuyoq")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_g5jhy"]
atlas = ExtResource("2_tuyoq")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_holxr"]
atlas = ExtResource("2_tuyoq")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_mx1m4"]
atlas = ExtResource("2_tuyoq")
region = Rect2(0, 0, 48, 48)
[sub_resource type="SpriteFrames" id="SpriteFrames_jej6c"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_l71n6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ke2ow")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ujl30")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_31cv2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pf23h")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dt7fs")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wqfne")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wnwbv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gl8cc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_487ah")
}],
"loop": false,
"name": &"death",
"speed": 2.5
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_i4ail")
}],
"loop": false,
@@ -104,6 +237,23 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_md1ol")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bj30b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jc3p3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hax0n")
}],
"loop": false,
"name": &"hurt",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_qhqgy")
}, {
"duration": 1.0,
@@ -176,6 +326,41 @@ animations = [{
"loop": true,
"name": &"running",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_t4otl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_j2b1d")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cs1tg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2dvfe")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_giy8y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fdfoy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hhpqf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g5jhy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_holxr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mx1m4")
}],
"loop": false,
"name": &"spawn",
"speed": 12.0
}]
[node name="Player" type="CharacterBody2D" unique_id=401513938]
@@ -196,8 +381,10 @@ position = Vector2(-12, -19)
texture_filter = 1
position = Vector2(0, -16)
sprite_frames = SubResource("SpriteFrames_jej6c")
animation = &"idle"
animation = &"death"
autoplay = "idle"
frame = 9
frame_progress = 1.0
[node name="Camera2D" type="Camera2D" parent="." unique_id=619350893]
offset = Vector2(0, -30)
+73
View File
@@ -0,0 +1,73 @@
[gd_scene format=3 uid="uid://dh7cp51oyyl76"]
[ext_resource type="Script" uid="uid://cyn4llpk3qcub" path="res://scripts/slime.gd" id="1_p2gj0"]
[ext_resource type="Texture2D" uid="uid://3nqjbe8l8lb" path="res://assets/graphics/enimes/slime_green.png" id="2_n6pvg"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_pjw23"]
size = Vector2(14, 15.75)
[sub_resource type="AtlasTexture" id="AtlasTexture_2npkn"]
atlas = ExtResource("2_n6pvg")
region = Rect2(0, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_fd6lc"]
atlas = ExtResource("2_n6pvg")
region = Rect2(24, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_gstla"]
atlas = ExtResource("2_n6pvg")
region = Rect2(48, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_v5wyi"]
atlas = ExtResource("2_n6pvg")
region = Rect2(72, 24, 24, 24)
[sub_resource type="SpriteFrames" id="SpriteFrames_0l8pv"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_2npkn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fd6lc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gstla")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_v5wyi")
}],
"loop": true,
"name": &"default",
"speed": 12.0
}]
[node name="GreenSlime" type="Area2D" unique_id=505365009]
script = ExtResource("1_p2gj0")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=391826789]
position = Vector2(0, 0.125)
shape = SubResource("RectangleShape2D_pjw23")
[node name="SlimeGraphic" type="AnimatedSprite2D" parent="." unique_id=1018629139]
texture_filter = 1
position = Vector2(0, -4)
sprite_frames = SubResource("SpriteFrames_0l8pv")
autoplay = "default"
frame_progress = 0.2686127
[node name="RightCast" type="RayCast2D" parent="." unique_id=1472802603]
target_position = Vector2(9, 0)
[node name="LeftCast" type="RayCast2D" parent="." unique_id=1015691484]
target_position = Vector2(-9, 0)
[node name="LeftDownCast" type="RayCast2D" parent="." unique_id=1806006146]
position = Vector2(-7, 0)
target_position = Vector2(0, 9)
[node name="RightDownCast" type="RayCast2D" parent="." unique_id=732751680]
position = Vector2(7, 0)
target_position = Vector2(0, 9)
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
+48
View File
@@ -0,0 +1,48 @@
[gd_scene format=3 uid="uid://c1dgwb1r7e2fg"]
[ext_resource type="Script" uid="uid://dcpm4dbhpfksa" path="res://scripts/ui.gd" id="1_nt7q6"]
[node name="UI" type="Control" unique_id=2022682093]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_vertical = 0
script = ExtResource("1_nt7q6")
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=830528802]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
grow_horizontal = 2
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer" unique_id=1238491607]
layout_mode = 2
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/HBoxContainer" unique_id=752114180]
layout_mode = 2
size_flags_horizontal = 3
[node name="Health" type="Label" parent="VBoxContainer/HBoxContainer/MarginContainer" unique_id=681594112]
layout_mode = 2
text = "HEALTH"
[node name="MarginContainer2" type="MarginContainer" parent="VBoxContainer/HBoxContainer" unique_id=362368783]
layout_mode = 2
size_flags_horizontal = 3
[node name="Timer" type="Label" parent="VBoxContainer/HBoxContainer/MarginContainer2" unique_id=691788231]
layout_mode = 2
text = "TIMER"
horizontal_alignment = 1
[node name="MarginContainer3" type="MarginContainer" parent="VBoxContainer/HBoxContainer" unique_id=1764636320]
layout_mode = 2
size_flags_horizontal = 3
[node name="Coins" type="Label" parent="VBoxContainer/HBoxContainer/MarginContainer3" unique_id=319763029]
layout_mode = 2
text = "COINS"
horizontal_alignment = 2
+48 -11
View File
@@ -3,7 +3,10 @@ class_name SceneManager extends Node2D
@onready var triggers: Node2D = $"../Triggers"
@onready var crates: Node2D = $"../Crates"
@onready var level: Node2D = $"../Level"
@onready var game: GameController = $".."
@onready var coins: Node2D = $"../Coins"
@onready var slimes: Node2D = $"../Slimes"
@onready var player: Player = $"../Player"
@onready var ui: UI = $"../CanvasLayer/UI"
var bullet = preload("res://scenes/bullet.tscn")
var bulletArray:Array[Bullet] = []
@@ -11,29 +14,63 @@ var totalAllowedBullets:int = 7
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
Gamecontroller.reset()
buildLevel()
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
if Input.is_action_just_pressed("save"):
print("save the game")
if Input.is_action_just_pressed("load"):
print("load the game")
func buildLevel()->void:
print("building level")
updateCrates()
updateTriggers()
updateCoins()
updateEnemies()
#wire up signals from GameController
game.destroySignal.connect(destroy)
game.teleportSignal.connect(teleport)
game.levelChangeSignal.connect(loadLevel)
Gamecontroller.destroySignal.connect(destroy)
Gamecontroller.teleportSignal.connect(teleport)
Gamecontroller.levelChangeSignal.connect(loadLevel)
Gamecontroller.playerDamageSignal.connect(player.playerDamage)
Gamecontroller.playerDamageSignal.connect(ui.updateHealth)
Gamecontroller.playerDeathSignal.connect(player.playerDead)
Gamecontroller.countDownSignal.connect(ui.updateTimer)
Gamecontroller.coinsCollectedSignal.connect(ui.updateCoins)
player.deathAnimationCompleteSignal.connect(Gamecontroller.loadLevel)
func updateEnemies()->void:
if slimes:
var totalSlimes = 0
for obj in slimes.get_children():
if obj is Slime:
totalSlimes +=1
Gamecontroller.addEnemyToLevel(obj)
#hook up to game controller
if not obj.slimeDamageSignal.is_connected(Gamecontroller._on_slime_damage):
obj.slimeDamageSignal.connect(Gamecontroller._on_slime_damage)
func updateCoins()->void:
if coins:
var totalCoins = 0
for obj in coins.get_children():
if obj is Coin:
totalCoins+=1
#hook up coin to gamecontroller
if not obj.coinCollectedSignal.is_connected(Gamecontroller._on_coin_collected):
obj.coinCollectedSignal.connect(Gamecontroller._on_coin_collected)
if not obj.tree_exited.is_connected(updateCoins):
obj.tree_exited.connect(updateCoins)
Gamecontroller.totalCoins(totalCoins)
func updateTriggers()->void:
if triggers:
for obj in triggers.get_children():
if obj is Trigger:
if not obj.AreaTrigger.is_connected(game._on_trigger):
obj.AreaTrigger.connect(game._on_trigger)
if not obj.AreaTrigger.is_connected(Gamecontroller._on_trigger):
obj.AreaTrigger.connect(Gamecontroller._on_trigger)
func updateCrates()->void:
#check that there is a crates node
if crates:
@@ -43,7 +80,7 @@ func updateCrates()->void:
if not obj.tree_exited.is_connected(updateCrates):
obj.tree_exited.connect(updateCrates)
totalCrates +=1
game.crateUpdate(totalCrates)
Gamecontroller.crateUpdate(totalCrates)
func destroy(body)->void:
if body is Bullet:
stashBullet(body)
@@ -70,9 +107,9 @@ func bullectFactory()->Bullet :
#how many bullets have we made
if bulletArray.size() <= totalAllowedBullets:
myBullet = bullet.instantiate()
if not myBullet.bulletDamageSignal.is_connected(game.bulletDamage):
myBullet.bulletDamageSignal.connect(game.bulletDamage)
game.add_child(myBullet)
if not myBullet.bulletDamageSignal.is_connected(Gamecontroller.bulletDamage):
myBullet.bulletDamageSignal.connect(Gamecontroller.bulletDamage)
add_sibling(myBullet)
else:
myBullet = bulletArray.pop_back()
bulletArray.push_front(myBullet)
+4
View File
@@ -21,3 +21,7 @@ func _process(delta: float) -> void:
func _on_body_entered(body: Node2D) -> void:
bulletDamageSignal.emit(body, self)
func _on_area_entered(area: Area2D) -> void:
bulletDamageSignal.emit(area, self)
+7
View File
@@ -0,0 +1,7 @@
class_name Coin extends Area2D
signal coinCollectedSignal(body,coin)
func _on_body_entered(body: Node2D) -> void:
if body is Player:
coinCollectedSignal.emit(body, self)
+1
View File
@@ -0,0 +1 @@
uid://ci5pqwcmdavsg
+72 -2
View File
@@ -4,12 +4,34 @@ var crateTotal = 0
signal destroySignal(body)
signal teleportSignal(body)
signal levelChangeSignal(level)
signal playerDamageSignal(health, maxHealth)
signal playerDeathSignal
signal countDownSignal(timeRemaning)
signal coinsCollectedSignal(totalCoinsCollected, coinsRemaning)
var currentScene:String = "res://scenes/game.tscn"
var timer := Timer.new()
var timeAvailable := 10
var levels=["res://scenes/game.tscn","res://scenes/level2.tscn","res://scenes/level3.tscn"]
var timers=[15,10,5]
var currentLevel = 0
var coinsCollected = 0
var playerHealth = 100
var playerStartingHealth = 100
var enemiesDict={}
var enemy:CharectorStats
var player:CharectorStats
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
enemy = load("res://scripts/rscs/slimeStats.tres")
player = load("res://scripts/rscs/playerStats.tres")
get_window().grab_focus()
add_child(timer)
timer.wait_time = 1
@@ -17,11 +39,17 @@ func _ready() -> void:
timer.connect("timeout", secondCounter)
timer.start()
func reset()->void:
timeAvailable = timers[currentLevel]
playerHealth = player.starting_health
coinsCollected = 0
func secondCounter()->void:
timeAvailable -=1
countDownSignal.emit(timeAvailable)
if timeAvailable <=0:
print("YOU LOST YOU ARE A LOSER YOU SUCK")
levelChangeSignal.emit(currentScene)
levelChangeSignal.emit(levels[currentLevel])
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
@@ -47,9 +75,51 @@ func crateUpdate(cratesAmount)->void:
print("GC updated crates: "+str(crateTotal))
if crateTotal <=0:
print("You WON!!!")
levelChangeSignal.emit(currentScene)
currentLevel += 1
if currentLevel >= levels.size():
currentLevel = 0
levelChangeSignal.emit(levels[currentLevel])
func bulletDamage(body:Node2D, bullet:Bullet)->void:
if body is Crate:
destroySignal.emit(body)
destroySignal.emit(bullet)
if body is Slime:
enemiesDict[body]["health"] -= player.rangeDamage
if enemiesDict[body]["health"] <= 0:
destroySignal.emit(body)
destroySignal.emit(bullet)
func _on_coin_collected(body:Node2D, coin:Coin):
print("GC know coin")
coinsCollected += 1
destroySignal.emit(coin)
func totalCoins(value)->void:
print("GC know coins remaning "+str(value))
coinsCollectedSignal.emit(coinsCollected, value)
if value <= 0:
currentLevel += 1
if currentLevel >= levels.size():
currentLevel = 0
levelChangeSignal.emit(levels[currentLevel])
func _on_slime_damage(boyd:Node2D, slime:Slime)->void:
playerHealth -= enemiesDict[slime]["damage"]
print("GC DAMAGE THE PLAYER AND KILL THEM "+str(playerHealth))
if playerHealth <=0:
print("YOU Dieded")
playerDeathSignal.emit()
#levelChangeSignal.emit(levels[currentLevel])
else:
#damage
playerDamageSignal.emit(playerHealth, player.max_health)
func addEnemyToLevel(slime:Slime)->void:
#var randDamage:int = randi()%10
var enemyStat = {
"health":enemy.starting_health,
"damage":enemy.meleeDamage
}
enemiesDict[slime]=enemyStat
func loadLevel()->void:
levelChangeSignal.emit(levels[currentLevel])
+20 -3
View File
@@ -10,15 +10,17 @@ const BUMP_POWER = 1000
enum FaceDirection{LEFT, RIGHT}
var facing:FaceDirection = FaceDirection.RIGHT
var direction
enum PlayerState{IDLE,RUNNING,JUMPING,FALLING}
enum PlayerState{IDLE,RUNNING,JUMPING,FALLING,HURT,DEATH,SPAWN}
var current_player_state:PlayerState = PlayerState.IDLE
var jumpUp:bool = false
signal deathAnimationCompleteSignal
func _physics_process(delta: float) -> void:
#Handle Shoot
handle_input()
if current_player_state != PlayerState.DEATH:
handle_input()
handle_movement(delta)
handle_state()
handle_animation()
@@ -76,6 +78,10 @@ func handle_animation()->void:
player_graphic.play("jumping")
PlayerState.FALLING:
player_graphic.play("falling")
PlayerState.HURT:
player_graphic.play("hurt")
PlayerState.DEATH:
player_graphic.play("death")
func handle_movement(delta)->void:
# Add the gravity.
@@ -104,3 +110,14 @@ func _on_animation_finished() -> void:
match current_player_state:
PlayerState.JUMPING:
jumpUp = false
PlayerState.HURT:
current_player_state = PlayerState.IDLE
PlayerState.DEATH:
deathAnimationCompleteSignal.emit()
func playerDamage(health, maxHealth) ->void:
print("c")
current_player_state = PlayerState.HURT
func playerDead()-> void:
print("You FINALY DIED")
current_player_state = PlayerState.DEATH
+11
View File
@@ -0,0 +1,11 @@
class_name CharectorStats extends Resource
@export_category("Health")
@export var health:int = 100
@export var max_health:int = 100
@export var starting_health:int = 100
#damage
@export_category("Damage")
@export var meleeDamage:int =10
@export var rangeDamage: int =5
+1
View File
@@ -0,0 +1 @@
uid://b7u1be28qy8ye
+7
View File
@@ -0,0 +1,7 @@
[gd_resource type="Resource" script_class="CharectorStats" format=3 uid="uid://omvjulu840js"]
[ext_resource type="Script" uid="uid://b7u1be28qy8ye" path="res://scripts/rscs/charecterStats.gd" id="1_sqkfu"]
[resource]
script = ExtResource("1_sqkfu")
metadata/_custom_type_script = "uid://b7u1be28qy8ye"
+12
View File
@@ -0,0 +1,12 @@
[gd_resource type="Resource" script_class="CharectorStats" format=3 uid="uid://dep2ewei086m4"]
[ext_resource type="Script" uid="uid://b7u1be28qy8ye" path="res://scripts/rscs/charecterStats.gd" id="1_ppipo"]
[resource]
script = ExtResource("1_ppipo")
health = 20
max_health = 30
starting_health = 20
meleeDamage = 20
rangeDamage = 0
metadata/_custom_type_script = "uid://b7u1be28qy8ye"
+32
View File
@@ -0,0 +1,32 @@
class_name Slime extends Area2D
@onready var right_cast: RayCast2D = $RightCast
@onready var left_cast: RayCast2D = $LeftCast
@onready var left_down_cast: RayCast2D = $LeftDownCast
@onready var right_down_cast: RayCast2D = $RightDownCast
@onready var slime_graphic: AnimatedSprite2D = $SlimeGraphic
var speed:int = 100
var direction = 1
signal slimeDamageSignal(body, slime)
#Animation code
func _process(delta: float) -> void:
if not right_down_cast.is_colliding():
direction = -1
slime_graphic.flip_h = true
if not left_down_cast.is_colliding():
direction = 1
slime_graphic.flip_h = false
if right_cast.is_colliding() && not right_cast.get_collider() is Player:
direction = -1
slime_graphic.flip_h = true
if left_cast.is_colliding() && not left_cast.get_collider() is Player:
direction = 1
slime_graphic.flip_h = false
position.x += direction * speed * delta
func _on_body_entered(body: Node2D) -> void:
if body is Player:
slimeDamageSignal.emit(body, self)
+1
View File
@@ -0,0 +1 @@
uid://cyn4llpk3qcub
+16
View File
@@ -0,0 +1,16 @@
class_name UI extends Control
@onready var health: Label = $VBoxContainer/HBoxContainer/MarginContainer/Health
@onready var timer: Label = $VBoxContainer/HBoxContainer/MarginContainer2/Timer
@onready var coins: Label = $VBoxContainer/HBoxContainer/MarginContainer3/Coins
func _ready() -> void:
health.text = "Hi MOM"
func updateTimer(timerValue)->void:
timer.text =str(timerValue)
func updateHealth(healthValue, maxHealth)->void:
health.text = str(healthValue)
func updateCoins(collectedCoins, coinsRemaning)->void:
coins.text=str(collectedCoins)+" of "+str(coinsRemaning+collectedCoins)
+1
View File
@@ -0,0 +1 @@
uid://dcpm4dbhpfksa