Compare commits
4
Commits
8ad0f7b627
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d08cfff850 | ||
|
|
f31033dd59 | ||
|
|
f6ad5142bf | ||
|
|
e0f48061e7 |
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 500 B |
@@ -2,16 +2,16 @@
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dvo3fyb2k6saf"
|
||||
path="res://.godot/imported/trees.png-aae64ae71e38b889bacd9a989dc53946.ctex"
|
||||
uid="uid://cco2vhmejry0v"
|
||||
path="res://.godot/imported/coin.png-20c0ec177f21de2ef8f2f0e70fa6fe8a.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/trees.png"
|
||||
dest_files=["res://.godot/imported/trees.png-aae64ae71e38b889bacd9a989dc53946.ctex"]
|
||||
source_file="res://assets/graphics/collectibles/coin.png"
|
||||
dest_files=["res://.godot/imported/coin.png-20c0ec177f21de2ef8f2f0e70fa6fe8a.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dqo6e8pa3jewf"
|
||||
path="res://.godot/imported/slime_purple.png-7c7bd1452ab1f0d8805110e20459acf6.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/graphics/enemies/slime_purple.png"
|
||||
dest_files=["res://.godot/imported/slime_purple.png-7c7bd1452ab1f0d8805110e20459acf6.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
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c1l8de3i0kljl"
|
||||
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/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
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d0osk3f111068"
|
||||
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/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
|
||||
@@ -15,6 +15,10 @@ run/main_scene="res://scenes/game.tscn"
|
||||
config/features=PackedStringArray("4.3", "Forward Plus")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
[autoload]
|
||||
|
||||
GameController="*res://scripts/gameController.gd"
|
||||
|
||||
[display]
|
||||
|
||||
window/size/viewport_width=320
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://bk0pk4m1ln716"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/badguy.gd" id="1_oeik4"]
|
||||
[ext_resource type="Texture2D" uid="uid://dqo6e8pa3jewf" path="res://assets/graphics/enemies/slime_purple.png" id="2_bfdny"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_r6wn1"]
|
||||
atlas = ExtResource("2_bfdny")
|
||||
region = Rect2(0, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_te1wg"]
|
||||
atlas = ExtResource("2_bfdny")
|
||||
region = Rect2(24, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_g742w"]
|
||||
atlas = ExtResource("2_bfdny")
|
||||
region = Rect2(48, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6ebwa"]
|
||||
atlas = ExtResource("2_bfdny")
|
||||
region = Rect2(72, 24, 24, 24)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_mb27d"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_r6wn1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_te1wg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_g742w")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6ebwa")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 12.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_blkie"]
|
||||
size = Vector2(14, 15)
|
||||
|
||||
[node name="Area2D" type="Area2D" groups=["enemies"]]
|
||||
scale = Vector2(2, 2)
|
||||
script = ExtResource("1_oeik4")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
sprite_frames = SubResource("SpriteFrames_mb27d")
|
||||
animation = &"idle"
|
||||
autoplay = "idle"
|
||||
frame_progress = 0.396641
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, 4.5)
|
||||
shape = SubResource("RectangleShape2D_blkie")
|
||||
|
||||
[node name="RightRay" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(13, 0)
|
||||
|
||||
[node name="LeftRay" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(-13, 0)
|
||||
|
||||
[node name="RightFloorRay" type="RayCast2D" parent="."]
|
||||
position = Vector2(8, 3)
|
||||
target_position = Vector2(0, 11)
|
||||
|
||||
[node name="LeftFloorRay" type="RayCast2D" parent="."]
|
||||
position = Vector2(-8, 3)
|
||||
target_position = Vector2(0, 11)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
@@ -0,0 +1,116 @@
|
||||
[gd_scene load_steps=17 format=3 uid="uid://cey0ymp1n0iqe"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cco2vhmejry0v" path="res://assets/graphics/collectibles/coin.png" id="1_c71mt"]
|
||||
[ext_resource type="Script" path="res://scripts/coin.gd" id="1_h4xkt"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_n1dcx"]
|
||||
atlas = ExtResource("1_c71mt")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_13l51"]
|
||||
atlas = ExtResource("1_c71mt")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_hahrw"]
|
||||
atlas = ExtResource("1_c71mt")
|
||||
region = Rect2(32, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mfe8o"]
|
||||
atlas = ExtResource("1_c71mt")
|
||||
region = Rect2(48, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_71uln"]
|
||||
atlas = ExtResource("1_c71mt")
|
||||
region = Rect2(64, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_c7ty3"]
|
||||
atlas = ExtResource("1_c71mt")
|
||||
region = Rect2(80, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_n435u"]
|
||||
atlas = ExtResource("1_c71mt")
|
||||
region = Rect2(96, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6uw02"]
|
||||
atlas = ExtResource("1_c71mt")
|
||||
region = Rect2(112, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xlt2g"]
|
||||
atlas = ExtResource("1_c71mt")
|
||||
region = Rect2(128, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_367r4"]
|
||||
atlas = ExtResource("1_c71mt")
|
||||
region = Rect2(144, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_omldi"]
|
||||
atlas = ExtResource("1_c71mt")
|
||||
region = Rect2(160, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_74aet"]
|
||||
atlas = ExtResource("1_c71mt")
|
||||
region = Rect2(176, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_dwt5l"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_n1dcx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_13l51")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_hahrw")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mfe8o")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_71uln")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_c7ty3")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_n435u")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6uw02")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xlt2g")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_367r4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_omldi")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_74aet")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 12.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_4xboy"]
|
||||
radius = 5.0
|
||||
|
||||
[node name="Area2D" type="Area2D" groups=["collectibles"]]
|
||||
script = ExtResource("1_h4xkt")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
sprite_frames = SubResource("SpriteFrames_dwt5l")
|
||||
animation = &"idle"
|
||||
autoplay = "idle"
|
||||
frame_progress = 0.32788
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_4xboy")
|
||||
debug_color = Color(0.614132, 0.536519, 0.0596093, 0.42)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
+33
-25
@@ -1,7 +1,6 @@
|
||||
[gd_scene load_steps=14 format=4 uid="uid://dhgts0kodsujx"]
|
||||
[gd_scene load_steps=15 format=4 uid="uid://dhgts0kodsujx"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://djkjmi7bo58uv" path="res://scenes/crate.tscn" id="1_6shkr"]
|
||||
[ext_resource type="Script" path="res://scripts/gameController.gd" id="1_50x63"]
|
||||
[ext_resource type="Script" path="res://scripts/sceneManager.gd" id="1_ooich"]
|
||||
[ext_resource type="Texture2D" uid="uid://dordo7deet5y0" path="res://assets/graphics/terrains/backgrounds/forestbackground.png" id="2_u8255"]
|
||||
[ext_resource type="PackedScene" uid="uid://b2hyqfqh02ep6" path="res://scenes/player.tscn" id="3_bssht"]
|
||||
@@ -9,6 +8,9 @@
|
||||
[ext_resource type="Script" path="res://scripts/trigger.gd" id="3_t4lk8"]
|
||||
[ext_resource type="Texture2D" uid="uid://cg03sfie3jb4h" path="res://assets/graphics/terrains/backgrounds/trees.png" id="3_u7j2e"]
|
||||
[ext_resource type="Texture2D" uid="uid://dktvd8atklmau" path="res://assets/graphics/terrains/Terrain (32x32).png" id="6_jpfcs"]
|
||||
[ext_resource type="PackedScene" uid="uid://cey0ymp1n0iqe" path="res://scenes/coin.tscn" id="8_cgxc5"]
|
||||
[ext_resource type="PackedScene" uid="uid://bk0pk4m1ln716" path="res://scenes/badguy.tscn" id="9_da82o"]
|
||||
[ext_resource type="PackedScene" uid="uid://dna0q0tmmxs0g" path="res://scenes/ui.tscn" id="11_i83dw"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_v72u6"]
|
||||
texture = ExtResource("6_jpfcs")
|
||||
@@ -377,21 +379,22 @@ terrain_set_0/terrain_0/name = "leafyground 0"
|
||||
terrain_set_0/terrain_0/color = Color(0.5, 0.34375, 0.25, 1)
|
||||
sources/0 = SubResource("TileSetAtlasSource_v72u6")
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_gasd3"]
|
||||
distance = -1.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_5ph8t"]
|
||||
radius = 62.0
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
script = ExtResource("1_50x63")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="ui" parent="CanvasLayer" instance=ExtResource("11_i83dw")]
|
||||
|
||||
[node name="background" type="Parallax2D" parent="."]
|
||||
scroll_offset = Vector2(626, 298)
|
||||
repeat_size = Vector2(320, 0)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="background"]
|
||||
position = Vector2(160, 90)
|
||||
position = Vector2(152, 72)
|
||||
scale = Vector2(1, 1.21111)
|
||||
texture = ExtResource("2_u8255")
|
||||
|
||||
[node name="Sprite2D2" type="Sprite2D" parent="background"]
|
||||
@@ -419,19 +422,9 @@ script = ExtResource("1_ooich")
|
||||
[node name="TileMapLayer" type="TileMapLayer" parent="."]
|
||||
texture_filter = 1
|
||||
position = Vector2(-34, -10)
|
||||
tile_map_data = PackedByteArray("AAADAP3/AAAAAAAAAAAN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AAAAAEAN7/AAAGAAAAAAAFAN7/AAABAAEAAAABAOL/AAACAAIAAAAAAOL/AAAPAAEAAAAAAOP/AAACAAIAAAD//+P/AAAGAAAAAAD//+T/AAACAAIAAAD+/+T/AAAGAAAAAAD+/+H/AAAHAAAAAAD+/+D/AAAHAAAAAAD//+D/AAAGAAAAAAD//9//AAAHAAAAAAD//97/AAAHAAAAAAD//93/AAAKAAEAAAD//9z/AAAHAAAAAAD+/9Line truncated
|
||||
tile_set = SubResource("TileSet_fj5fk")
|
||||
|
||||
[node name="Floor" type="StaticBody2D" parent="."]
|
||||
position = Vector2(-26, 475)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Floor"]
|
||||
shape = SubResource("WorldBoundaryShape2D_gasd3")
|
||||
|
||||
[node name="CharacterBody2D" parent="." instance=ExtResource("3_bssht")]
|
||||
position = Vector2(324, 76)
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
position = Vector2(831, 439)
|
||||
script = ExtResource("3_t4lk8")
|
||||
@@ -441,14 +434,26 @@ metadata/_edit_group_ = true
|
||||
shape = SubResource("CircleShape2D_5ph8t")
|
||||
debug_color = Color(0.630721, 0.529414, 1.92523e-07, 0.42)
|
||||
|
||||
[node name="coins" type="Node2D" parent="."]
|
||||
|
||||
[node name="Area2D" parent="coins" instance=ExtResource("8_cgxc5")]
|
||||
position = Vector2(72, 107)
|
||||
|
||||
[node name="Area2D2" parent="coins" instance=ExtResource("8_cgxc5")]
|
||||
position = Vector2(-178, 75)
|
||||
|
||||
[node name="enemies" type="Node2D" parent="."]
|
||||
|
||||
[node name="Area2D" parent="enemies" instance=ExtResource("9_da82o")]
|
||||
position = Vector2(79, 415)
|
||||
|
||||
[node name="Area2D2" parent="enemies" instance=ExtResource("9_da82o")]
|
||||
position = Vector2(215, 415)
|
||||
|
||||
[node name="crates" type="Node2D" parent="."]
|
||||
|
||||
[node name="RigidBody2D4" parent="crates" instance=ExtResource("1_6shkr")]
|
||||
position = Vector2(504, -465)
|
||||
|
||||
[node name="RigidBody2D" parent="crates" groups=["pushables"] instance=ExtResource("1_6shkr")]
|
||||
position = Vector2(147, 68)
|
||||
rotation = 2.09219
|
||||
position = Vector2(693, 307)
|
||||
|
||||
[node name="RigidBody2D2" parent="crates" groups=["pushables"] instance=ExtResource("1_6shkr")]
|
||||
position = Vector2(595, 192)
|
||||
@@ -458,8 +463,11 @@ rotation = -1.41512
|
||||
position = Vector2(373, 200)
|
||||
rotation = -0.0982481
|
||||
|
||||
[node name="RigidBody2D5" parent="crates" instance=ExtResource("1_6shkr")]
|
||||
position = Vector2(-49, -64)
|
||||
[node name="RigidBody2D" parent="crates" instance=ExtResource("1_6shkr")]
|
||||
position = Vector2(-129, 190)
|
||||
|
||||
[node name="CharacterBody2D" parent="." instance=ExtResource("3_bssht")]
|
||||
position = Vector2(-5, 448)
|
||||
|
||||
[connection signal="areaTrigger" from="Area2D" to="." method="_on_trigger"]
|
||||
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
|
||||
@@ -0,0 +1,485 @@
|
||||
[gd_scene load_steps=16 format=4 uid="uid://dxvvtcldbhsac"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dordo7deet5y0" path="res://assets/graphics/terrains/backgrounds/forestbackground.png" id="1_fca7k"]
|
||||
[ext_resource type="Texture2D" uid="uid://cukevm4avtgnp" path="res://assets/graphics/terrains/backgrounds/sky.png" id="2_7a0hu"]
|
||||
[ext_resource type="Texture2D" uid="uid://cg03sfie3jb4h" path="res://assets/graphics/terrains/backgrounds/trees.png" id="3_s0j85"]
|
||||
[ext_resource type="Script" path="res://scripts/sceneManager.gd" id="4_7de2m"]
|
||||
[ext_resource type="Texture2D" uid="uid://dktvd8atklmau" path="res://assets/graphics/terrains/Terrain (32x32).png" id="5_qoo1j"]
|
||||
[ext_resource type="PackedScene" uid="uid://b2hyqfqh02ep6" path="res://scenes/player.tscn" id="6_4x3pf"]
|
||||
[ext_resource type="Script" path="res://scripts/trigger.gd" id="7_vcera"]
|
||||
[ext_resource type="PackedScene" uid="uid://djkjmi7bo58uv" path="res://scenes/crate.tscn" id="8_q5n2b"]
|
||||
[ext_resource type="PackedScene" uid="uid://cey0ymp1n0iqe" path="res://scenes/coin.tscn" id="9_iql8u"]
|
||||
[ext_resource type="PackedScene" uid="uid://bk0pk4m1ln716" path="res://scenes/badguy.tscn" id="10_w2bl5"]
|
||||
[ext_resource type="PackedScene" uid="uid://dna0q0tmmxs0g" path="res://scenes/ui.tscn" id="11_6mr7q"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_v72u6"]
|
||||
texture = ExtResource("5_qoo1j")
|
||||
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, 11.25, 16, -10.25, 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, 16, 11.25, 16, -10.25, 16, -16, 16)
|
||||
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, 11.25, 16, -10.25, 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, 16, -16, 16, 16, -10, 16, -16, 9)
|
||||
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/top_side = 0
|
||||
13:0/0 = 0
|
||||
13:0/0/terrain_set = 0
|
||||
13:0/0/terrain = 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, 16, -16, 16, 16, 11.25, 16, -10.25, 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/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, 11.25, 16, -10.25, 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, 11.25, 16, -10.25, 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/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/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, -10, 16, -16, 9)
|
||||
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, 11.25, 16, -10.25, 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, 9.5, 10, 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, 9.5, 10, 16, -9.5, 16, -16, 10.25)
|
||||
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.25, -16, 2, 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(1.5, -16, 16, -16, 16, 16, 0, 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, 2, -16, 2.25)
|
||||
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, 2, -16, 2.25)
|
||||
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, 4.5, -16, 5.25, 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, 1, -16, 1)
|
||||
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, -7.25, 16, -16, 7.75)
|
||||
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, 10.25, 10.75, 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, 9.5, 11.25, 16, -10.25, 16, -16, 8.75)
|
||||
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.25, -16, 2, 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(1.5, -16, 16, -16, 16, 16, 0, 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, 0.5, 16, 1, 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, 0.5, 16, 1, 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, 4.5, -16, 5.25, 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, -0.25, 16, -0.5, 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, -16, 16)
|
||||
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, 16, -16, 16)
|
||||
16:4/0/terrains_peering_bit/left_side = 0
|
||||
16:4/0/terrains_peering_bit/top_side = 0
|
||||
|
||||
[sub_resource type="TileSet" id="TileSet_fj5fk"]
|
||||
tile_size = Vector2i(32, 32)
|
||||
physics_layer_0/collision_layer = 1
|
||||
terrain_set_0/mode = 0
|
||||
terrain_set_0/terrain_0/name = "leafyground 0"
|
||||
terrain_set_0/terrain_0/color = Color(0.5, 0.34375, 0.25, 1)
|
||||
sources/0 = SubResource("TileSetAtlasSource_v72u6")
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_gasd3"]
|
||||
distance = -1.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_5ph8t"]
|
||||
radius = 62.0
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="ui" parent="CanvasLayer" instance=ExtResource("11_6mr7q")]
|
||||
|
||||
[node name="background" type="Parallax2D" parent="."]
|
||||
scroll_offset = Vector2(626, 298)
|
||||
repeat_size = Vector2(320, 0)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="background"]
|
||||
position = Vector2(160, 90)
|
||||
texture = ExtResource("1_fca7k")
|
||||
|
||||
[node name="Sprite2D2" type="Sprite2D" parent="background"]
|
||||
position = Vector2(-8, -19200)
|
||||
scale = Vector2(1, 202.1)
|
||||
texture = ExtResource("2_7a0hu")
|
||||
offset = Vector2(160, 90)
|
||||
|
||||
[node name="trees" type="Parallax2D" parent="."]
|
||||
scroll_scale = Vector2(0.7, 1)
|
||||
scroll_offset = Vector2(626, 298)
|
||||
repeat_size = Vector2(320, 0)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="trees"]
|
||||
texture_filter = 1
|
||||
position = Vector2(0, -54)
|
||||
scale = Vector2(1, 1.3)
|
||||
texture = ExtResource("3_s0j85")
|
||||
offset = Vector2(160, 90)
|
||||
|
||||
[node name="SceneManager" type="Node" parent="."]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("4_7de2m")
|
||||
|
||||
[node name="TileMapLayer" type="TileMapLayer" parent="."]
|
||||
texture_filter = 1
|
||||
position = Vector2(-34, -10)
|
||||
tile_map_data = PackedByteArray("AAADAP3/AAAAAAAAAAANAA0AAAAAAAAAAAAKAAsAAAACAAQAAAAAAA8AAAABAAAAAAABAA8AAAABAAAAAAACAA8AAAABAAAAAAADAA8AAAABAAAAAAAEAA8AAAABAAAAAAAFAA8AAAABAAAAAAAGAA8AAAABAAAAAAAHAA8AAAABAAAAAAAIAA8AAAABAAAAAAAJAA8AAAABAAAAAAAKAA8AAAABAAAAAAALAA8AAAAHAAEAAAALAA4AAAAAAAAAAAAMAA4AAAABAAAAAAAOAAwAAAAAAAAAAAAPAAwAAAABAAAAAAAQAAwAAAAJAAAAAAAQAAsAAAAEAAAAAAD//woAAAAEAAAAAAD//wsAAAAQAAQAAAD+/wsAAAABAAQAAAD9/wsAAAAMAAMAAAD9/wwAAAAEAAEAAAD9/w0AAAAEAAEAAAD9/w4AAAAPAAQAAAD+/w4AAAAQAAMAAAD+/w8AAAAPAAQAAAAFAAwAAAACAAQAAAAJAAsAAAAAAAQAAAAKAAgAAAAAAAIAAAALAAgAAAAJAAQAAAAMAAgAAAAKAAMAAAADAAQAAAAAAAAAAAADAAUAAAAAAAIAAAAEAAUAAAABAAIAAAAFAAUAAAACAAIAAAAFAAQAAAACAAAAAAAEAAQAAAABAAAAAAAEAP3/AAAJAAMAAAAFAP3/AAACAAQAAAADAP7/AAAAAAIAAAAEAP7/AAACAAIAAAANAA4AAAAHAAEAAAAOAA0AAAAHAAEAAAAPAA0AAAAGAAAAAAAPAA4AAAAHAAAAAAAOAA4AAAAGAAAAAAAOAA8AAAAGAAA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ACAAAAAAD9/+v/AAAQAAEAAAD9/+r/AAACAAAAAAD8/+r/AAAGAAEAAAD8/+n/AAACAAEAAAD8/+j/AAAGAAAAAAD8/+f/AAAGAAAAAAD9/+f/AAACAAEAAAD9/+b/AAAGAAAAAAD9/+X/AAAHAAAAAAD9/+T/AAAHAAAAAAD9/+P/AAAGAAAAAAD+/+P/AAAHAAAAAAD+/+L/AAAHAAAAAAD//+L/AAAGAAEAAAD//+H/AAAGAAAAAAAAAOH/AAAQAAEAAAAAAOD/AAAKAAAAAAAAAN//AAAKAAAAAAAAAN7/AAAKAAAAAAAAAN3/AAAKAAEAAAAAANz/AAAGAAEAAAAAANv/AAACAAAAAAD//9v/AAABAAAAAAABANz/AAABAAAAAAACANz/AAACAAAAAAACAN3/AAAGAAEAAAADAN3/AAABAAAAAAAEAN3/AAABAAAAAAAFAN3/AAABAAAAAAAGAN3/AAACAAAAAAAGAN7/AAACAAEAAAAGAN//AAACAAIAAAAFAN//AAABAAIAAAAEAN//AAAGAAAAAAAEAOD/AAACAAIAAAADAOD/AAABAAIAAAACAOD/AAAGAAAAAAACAOH/AAACAAIAAAABAOH/AAAGAAAAAAABAOD/AAAGAAAAAAABAN//AAAGAAAAAAABAN7/AAAGAAAAAAADAN//AAAGAAAAAAACAN//AAAGAAAAAAACAN7/AAAGAAAAAAABAN3/AAAGAAAAAAADAN7/AAAGAAAAAAAEAN7/AAAGAAAAAAAFAN7/AAABAAEAAAABAOL/AAACAAIAAAAAAOL/AAAPAAEAAAAAAOP/AAACAAIAAAD//+P/AAAGAAAAAAD//+T/AAACAAIAAAD+/+T/AAAGAAAAAAD+/+H/AAAHAAAAAAD+/+D/AAAHAAAAAAD//+Line truncated
|
||||
tile_set = SubResource("TileSet_fj5fk")
|
||||
|
||||
[node name="Floor" type="StaticBody2D" parent="."]
|
||||
position = Vector2(-26, 475)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Floor"]
|
||||
shape = SubResource("WorldBoundaryShape2D_gasd3")
|
||||
|
||||
[node name="CharacterBody2D" parent="." instance=ExtResource("6_4x3pf")]
|
||||
position = Vector2(-100, -15)
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
position = Vector2(831, 439)
|
||||
script = ExtResource("7_vcera")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
shape = SubResource("CircleShape2D_5ph8t")
|
||||
debug_color = Color(0.630721, 0.529414, 1.92523e-07, 0.42)
|
||||
|
||||
[node name="crates" type="Node2D" parent="."]
|
||||
|
||||
[node name="RigidBody2D4" parent="crates" instance=ExtResource("8_q5n2b")]
|
||||
position = Vector2(693, 307)
|
||||
|
||||
[node name="RigidBody2D2" parent="crates" groups=["pushables"] instance=ExtResource("8_q5n2b")]
|
||||
position = Vector2(595, 192)
|
||||
rotation = -1.41512
|
||||
|
||||
[node name="RigidBody2D3" parent="crates" groups=["pushables"] instance=ExtResource("8_q5n2b")]
|
||||
position = Vector2(373, 200)
|
||||
rotation = -0.0982481
|
||||
|
||||
[node name="RigidBody2D" parent="crates" instance=ExtResource("8_q5n2b")]
|
||||
position = Vector2(501, 265)
|
||||
|
||||
[node name="enemies" type="Node2D" parent="."]
|
||||
|
||||
[node name="Area2D" parent="enemies" instance=ExtResource("10_w2bl5")]
|
||||
position = Vector2(79, 415)
|
||||
|
||||
[node name="Area2D2" parent="enemies" instance=ExtResource("10_w2bl5")]
|
||||
position = Vector2(215, 415)
|
||||
|
||||
[node name="coins" type="Node2D" parent="."]
|
||||
|
||||
[node name="Area2D" parent="coins" instance=ExtResource("9_iql8u")]
|
||||
position = Vector2(72, 107)
|
||||
|
||||
[node name="Area2D2" parent="coins" instance=ExtResource("9_iql8u")]
|
||||
position = Vector2(-178, 75)
|
||||
|
||||
[node name="Area2D3" parent="coins" instance=ExtResource("9_iql8u")]
|
||||
position = Vector2(315, 204)
|
||||
|
||||
[connection signal="areaTrigger" from="Area2D" to="." method="_on_trigger"]
|
||||
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
|
||||
+121
-7
@@ -1,12 +1,71 @@
|
||||
[gd_scene load_steps=28 format=3 uid="uid://b2hyqfqh02ep6"]
|
||||
[gd_scene load_steps=44 format=3 uid="uid://b2hyqfqh02ep6"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/charController.gd" id="1_4o8do"]
|
||||
[ext_resource type="Texture2D" uid="uid://c1l8de3i0kljl" path="res://assets/graphics/player/death/Player Death 64x64.png" id="2_alp3v"]
|
||||
[ext_resource type="Texture2D" uid="uid://bfhqvl875is6f" path="res://assets/graphics/player/idle/Player Idle 48x48.png" id="2_yfuca"]
|
||||
[ext_resource type="Texture2D" uid="uid://d0osk3f111068" path="res://assets/graphics/player/hurt/Player Hurt 48x48.png" id="3_5pi5t"]
|
||||
[ext_resource type="Texture2D" uid="uid://c2s48joyna11q" path="res://assets/graphics/player/jump/player jump 48x48.png" id="3_p8gbr"]
|
||||
[ext_resource type="Texture2D" uid="uid://bvat1vqwtua2p" path="res://assets/graphics/player/run/player run 48x48.png" id="3_y36hw"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_uvblg"]
|
||||
radius = 17.172
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_qr8pt"]
|
||||
radius = 9.93
|
||||
height = 35.0
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_iomdd"]
|
||||
atlas = ExtResource("2_alp3v")
|
||||
region = Rect2(0, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qlc64"]
|
||||
atlas = ExtResource("2_alp3v")
|
||||
region = Rect2(48, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_r8feb"]
|
||||
atlas = ExtResource("2_alp3v")
|
||||
region = Rect2(96, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_pchcp"]
|
||||
atlas = ExtResource("2_alp3v")
|
||||
region = Rect2(144, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ekkmw"]
|
||||
atlas = ExtResource("2_alp3v")
|
||||
region = Rect2(192, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_aenr4"]
|
||||
atlas = ExtResource("2_alp3v")
|
||||
region = Rect2(240, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_c2bld"]
|
||||
atlas = ExtResource("2_alp3v")
|
||||
region = Rect2(288, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_556cp"]
|
||||
atlas = ExtResource("2_alp3v")
|
||||
region = Rect2(336, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_hf6j1"]
|
||||
atlas = ExtResource("2_alp3v")
|
||||
region = Rect2(384, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_pvct1"]
|
||||
atlas = ExtResource("2_alp3v")
|
||||
region = Rect2(432, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0ae2b"]
|
||||
atlas = ExtResource("3_5pi5t")
|
||||
region = Rect2(0, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0i34p"]
|
||||
atlas = ExtResource("3_5pi5t")
|
||||
region = Rect2(48, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_k17h1"]
|
||||
atlas = ExtResource("3_5pi5t")
|
||||
region = Rect2(96, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1nyuv"]
|
||||
atlas = ExtResource("3_5pi5t")
|
||||
region = Rect2(144, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_cdvw1"]
|
||||
atlas = ExtResource("2_yfuca")
|
||||
@@ -96,6 +155,58 @@ region = Rect2(336, 0, 48, 48)
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_iomdd")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qlc64")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_r8feb")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_pchcp")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ekkmw")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_aenr4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_c2bld")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_556cp")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_hf6j1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_pvct1")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"playerDeath",
|
||||
"speed": 6.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0ae2b")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0i34p")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_k17h1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1nyuv")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"playerHurt",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_cdvw1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
@@ -179,8 +290,7 @@ PUSH_FORCE = 100
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
scale = Vector2(0.7, 1)
|
||||
shape = SubResource("CircleShape2D_uvblg")
|
||||
shape = SubResource("CapsuleShape2D_qr8pt")
|
||||
debug_color = Color(0.872789, 0.000463018, 0.842707, 0.42)
|
||||
|
||||
[node name="RightRay" type="RayCast2D" parent="."]
|
||||
@@ -200,8 +310,12 @@ offset = Vector2(0, -30)
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
position = Vector2(-1, -4)
|
||||
position = Vector2(-1, -3)
|
||||
scale = Vector2(1.29167, 1.29167)
|
||||
sprite_frames = SubResource("SpriteFrames_52pno")
|
||||
animation = &"playerJump"
|
||||
animation = &"playerDeath"
|
||||
autoplay = "playerIdle"
|
||||
frame = 9
|
||||
frame_progress = 1.0
|
||||
|
||||
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animated_finished"]
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 20 KiB |
@@ -0,0 +1,75 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://dna0q0tmmxs0g"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui.gd" id="1_1b5vo"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_bb10x"]
|
||||
font_size = 12
|
||||
font_color = Color(0.776471, 0.027451, 0.113725, 1)
|
||||
outline_size = 1
|
||||
outline_color = Color(0.0768358, 0.0768358, 0.0768358, 1)
|
||||
shadow_size = 3
|
||||
shadow_color = Color(0.121569, 0.121569, 0.121569, 0.670588)
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_rb7h3"]
|
||||
font_size = 12
|
||||
outline_size = 1
|
||||
outline_color = Color(0.0768358, 0.0768358, 0.0768358, 1)
|
||||
shadow_size = 3
|
||||
shadow_color = Color(0.121569, 0.121569, 0.121569, 0.670588)
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_fsj7b"]
|
||||
font_size = 12
|
||||
font_color = Color(0.99068, 0.855439, 0.297628, 1)
|
||||
outline_size = 1
|
||||
outline_color = Color(0.0768358, 0.0768358, 0.0768358, 1)
|
||||
shadow_size = 3
|
||||
shadow_color = Color(0.121569, 0.121569, 0.121569, 0.670588)
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_1b5vo")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
offset_bottom = 23.0
|
||||
grow_horizontal = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
||||
texture_filter = 1
|
||||
layout_mode = 2
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="health" type="Label" parent="VBoxContainer/HBoxContainer/MarginContainer"]
|
||||
texture_filter = 1
|
||||
layout_mode = 2
|
||||
label_settings = SubResource("LabelSettings_bb10x")
|
||||
|
||||
[node name="MarginContainer3" type="MarginContainer" parent="VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="timer" type="Label" parent="VBoxContainer/HBoxContainer/MarginContainer3"]
|
||||
layout_mode = 2
|
||||
label_settings = SubResource("LabelSettings_rb7h3")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="MarginContainer2" type="MarginContainer" parent="VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="coins" type="Label" parent="VBoxContainer/HBoxContainer/MarginContainer2"]
|
||||
texture_filter = 1
|
||||
layout_mode = 2
|
||||
label_settings = SubResource("LabelSettings_fsj7b")
|
||||
horizontal_alignment = 2
|
||||
@@ -0,0 +1,32 @@
|
||||
class_name BadGuy extends Area2D
|
||||
|
||||
@onready var sprite: AnimatedSprite2D = $AnimatedSprite2D
|
||||
@onready var right_ray: RayCast2D = $RightRay
|
||||
@onready var left_ray: RayCast2D = $LeftRay
|
||||
@onready var right_floor_ray: RayCast2D = $RightFloorRay
|
||||
@onready var left_floor_ray: RayCast2D = $LeftFloorRay
|
||||
|
||||
const speed := 60
|
||||
|
||||
var direction = 1
|
||||
|
||||
signal playerHurt
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if not right_floor_ray.is_colliding():
|
||||
#about to fall off the right
|
||||
direction = -1
|
||||
sprite.flip_h = not sprite.flip_h
|
||||
if not left_floor_ray.is_colliding():
|
||||
#about to fall off the left
|
||||
sprite.flip_h = not sprite.flip_h
|
||||
direction = 1
|
||||
|
||||
position.x += direction*speed*delta
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
if body.is_in_group("player"):
|
||||
print("player hurt")
|
||||
playerHurt.emit()
|
||||
# queue_free()
|
||||
|
||||
+99
-73
@@ -21,82 +21,108 @@ var bullet = preload("res://scenes/bullet.tscn")
|
||||
|
||||
var isJumping = false
|
||||
|
||||
var living = true
|
||||
var animPlaying = "playerIdle"
|
||||
|
||||
signal deathAnimDone
|
||||
|
||||
func hurtPlayer(_amt):
|
||||
if living:
|
||||
animPlaying = "playerHurt"
|
||||
animation.play(animPlaying)
|
||||
|
||||
func killPlayer():
|
||||
if living:
|
||||
living = false
|
||||
print("Oh no")
|
||||
animPlaying = "playerDeath"
|
||||
animation.play(animPlaying)
|
||||
|
||||
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
# Add the gravity.
|
||||
if not is_on_floor():
|
||||
velocity += get_gravity() * delta
|
||||
else:
|
||||
isJumping = false
|
||||
|
||||
# Handle jump.
|
||||
if Input.is_action_just_pressed("ui_accept") and is_on_floor():
|
||||
isJumping = true
|
||||
velocity.y = JUMP_VELOCITY
|
||||
|
||||
if pushTarget:
|
||||
if Input.is_action_just_pressed("Shove") && pushLeftEnabled && faceLeft:
|
||||
print("shove left")
|
||||
pushTarget.apply_central_impulse(Vector2(-1,0) * PUSH_FORCE * 10)
|
||||
pushLeftEnabled = false
|
||||
|
||||
if Input.is_action_just_pressed("Shove") && pushRightEnabled && not faceLeft:
|
||||
print("shove right")
|
||||
pushTarget.apply_central_impulse(Vector2(1,0) * PUSH_FORCE * 15)
|
||||
pushRightEnabled = false
|
||||
|
||||
if Input.is_action_just_pressed("Shoot"):
|
||||
if faceLeft:
|
||||
var _myBullet = %SceneManager.makeBullet(marker_left.global_transform, -700)
|
||||
if living and not animPlaying == "playerHurt":
|
||||
# Add the gravity.
|
||||
if not is_on_floor():
|
||||
velocity += get_gravity() * delta
|
||||
else:
|
||||
var _myBullet = %SceneManager.makeBullet(marker_right.global_transform, 700)
|
||||
isJumping = false
|
||||
|
||||
# Get the input direction and handle the movement/deceleration.
|
||||
# As good practice, you should replace UI actions with custom gameplay actions.
|
||||
var direction := Input.get_axis("ui_left", "ui_right")
|
||||
|
||||
|
||||
if direction:
|
||||
if direction < 0:
|
||||
faceLeft = true
|
||||
if direction > 0:
|
||||
faceLeft = false
|
||||
# Handle jump.
|
||||
if Input.is_action_just_pressed("ui_accept") and is_on_floor():
|
||||
isJumping = true
|
||||
velocity.y = JUMP_VELOCITY
|
||||
|
||||
animation.flip_h = faceLeft
|
||||
if not isJumping:
|
||||
animation.play("playerRun")
|
||||
else:
|
||||
animation.play("playerJump")
|
||||
velocity.x = direction * SPEED
|
||||
else:
|
||||
if not isJumping:
|
||||
animation.play("playerIdle")
|
||||
else:
|
||||
animation.play("playerJump")
|
||||
velocity.x = move_toward(velocity.x, 0, SPEED)
|
||||
|
||||
move_and_slide()
|
||||
for i in (get_slide_collision_count()):
|
||||
var c = get_slide_collision(i)
|
||||
if c.get_collider() is RigidBody2D:
|
||||
c.get_collider().apply_central_impulse(-c.get_normal()*BUMP_FORCE)
|
||||
|
||||
pushTarget = false
|
||||
if left_ray.is_colliding():
|
||||
print("Left ray collision")
|
||||
var collider = left_ray.get_collider()
|
||||
if collider is Node:
|
||||
if collider.is_in_group("pushables"):
|
||||
pushLeftEnabled = true
|
||||
pushTarget = collider
|
||||
else:
|
||||
if pushTarget:
|
||||
if Input.is_action_just_pressed("Shove") && pushLeftEnabled && faceLeft:
|
||||
print("shove left")
|
||||
pushTarget.apply_central_impulse(Vector2(-1,0) * PUSH_FORCE * 10)
|
||||
pushLeftEnabled = false
|
||||
|
||||
if right_ray.is_colliding():
|
||||
print("Right ray collision")
|
||||
var collider = right_ray.get_collider()
|
||||
if collider is Node:
|
||||
if collider.is_in_group("pushables"):
|
||||
pushRightEnabled = true
|
||||
pushTarget = collider
|
||||
else:
|
||||
|
||||
if Input.is_action_just_pressed("Shove") && pushRightEnabled && not faceLeft:
|
||||
print("shove right")
|
||||
pushTarget.apply_central_impulse(Vector2(1,0) * PUSH_FORCE * 15)
|
||||
pushRightEnabled = false
|
||||
|
||||
if Input.is_action_just_pressed("Shoot"):
|
||||
if faceLeft:
|
||||
var _myBullet = %SceneManager.makeBullet(marker_left.global_transform, -700)
|
||||
else:
|
||||
var _myBullet = %SceneManager.makeBullet(marker_right.global_transform, 700)
|
||||
|
||||
# Get the input direction and handle the movement/deceleration.
|
||||
# As good practice, you should replace UI actions with custom gameplay actions.
|
||||
var direction := Input.get_axis("ui_left", "ui_right")
|
||||
|
||||
|
||||
if direction:
|
||||
if direction < 0:
|
||||
faceLeft = true
|
||||
if direction > 0:
|
||||
faceLeft = false
|
||||
|
||||
animation.flip_h = faceLeft
|
||||
if not isJumping:
|
||||
animation.play("playerRun")
|
||||
else:
|
||||
animation.play("playerJump")
|
||||
velocity.x = direction * SPEED
|
||||
else:
|
||||
if not isJumping:
|
||||
animation.play("playerIdle")
|
||||
else:
|
||||
animation.play("playerJump")
|
||||
velocity.x = move_toward(velocity.x, 0, SPEED)
|
||||
|
||||
move_and_slide()
|
||||
for i in (get_slide_collision_count()):
|
||||
var c = get_slide_collision(i)
|
||||
if c.get_collider() is RigidBody2D:
|
||||
c.get_collider().apply_central_impulse(-c.get_normal()*BUMP_FORCE)
|
||||
|
||||
pushTarget = false
|
||||
if left_ray.is_colliding():
|
||||
var collider = left_ray.get_collider()
|
||||
if collider is Node:
|
||||
if collider.is_in_group("pushables"):
|
||||
pushLeftEnabled = true
|
||||
pushTarget = collider
|
||||
else:
|
||||
pushLeftEnabled = false
|
||||
|
||||
if right_ray.is_colliding():
|
||||
var collider = right_ray.get_collider()
|
||||
if collider is Node:
|
||||
if collider.is_in_group("pushables"):
|
||||
pushRightEnabled = true
|
||||
pushTarget = collider
|
||||
else:
|
||||
pushRightEnabled = false
|
||||
|
||||
|
||||
func _on_animated_finished() -> void:
|
||||
if animPlaying == "playerHurt":
|
||||
animPlaying = "playerIdle"
|
||||
if animPlaying == "playerDeath":
|
||||
# emit death signal
|
||||
deathAnimDone.emit()
|
||||
@@ -0,0 +1,9 @@
|
||||
class_name Coin extends Area2D
|
||||
|
||||
signal coinCollected
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
if body.is_in_group("player"):
|
||||
coinCollected.emit()
|
||||
queue_free()
|
||||
|
||||
+82
-17
@@ -1,44 +1,109 @@
|
||||
extends Node2D
|
||||
|
||||
var timer:= Timer.new()
|
||||
@export var secondCount= 99999999
|
||||
|
||||
var secondCount= 99
|
||||
var totalCrates := 0
|
||||
var totalCoins := 0
|
||||
var totalBadGuys := 0
|
||||
var totalCoinsCollected := 0
|
||||
var cratesDestroyed := 0
|
||||
|
||||
signal destroyBox
|
||||
var player:Resource
|
||||
|
||||
# level info
|
||||
var levels = ["res://scenes/game.tscn", "res://scenes/level2.tscn"]
|
||||
var timers = [90, 90]
|
||||
var currentLevel = 0
|
||||
|
||||
#Gamecontroller signals
|
||||
signal destroyBox(body)
|
||||
signal levelComplete(leveltoLoad)
|
||||
signal playerHurt(amt, max)
|
||||
signal playerDeath()
|
||||
|
||||
signal tick(timeRemaining)
|
||||
signal coinsUpdate(collected, remaining)
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
player = load("res://scripts/res/playerstats.tres")
|
||||
print("Player Health: "+str(player.health))
|
||||
print("Number of levels: "+str(levels.size()))
|
||||
add_child(timer)
|
||||
timer.wait_time = 1
|
||||
timer.one_shot = false
|
||||
timer.connect("timeout", secondCounter)
|
||||
timer.start()
|
||||
|
||||
|
||||
|
||||
func reset():
|
||||
secondCount = timers[currentLevel]
|
||||
player.health = player.starting_health
|
||||
playerHurt.emit.call_deferred(player.health, player.max_health)
|
||||
tick.emit.call_deferred(secondCount)
|
||||
totalCoinsCollected = 0
|
||||
coinsUpdate.emit.call_deferred(totalCoinsCollected, totalCoins)
|
||||
|
||||
|
||||
|
||||
|
||||
func secondCounter():
|
||||
print("time left: ", secondCount)
|
||||
secondCount -=1
|
||||
tick.emit(secondCount)
|
||||
if secondCount <= 0:
|
||||
print("A loser is you")
|
||||
get_tree().reload_current_scene()
|
||||
print("TIME IS UP")
|
||||
levelComplete.emit(levels[currentLevel])
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(_delta: float) -> void:
|
||||
pass
|
||||
|
||||
func _on_trigger(_effect: Variant, body) -> void:
|
||||
print("they were triggered!")
|
||||
if body is RigidBody2D:
|
||||
print("crate spotted")
|
||||
body.queue_free()
|
||||
func playerDamaged():
|
||||
print("GC knows player took damage")
|
||||
player.health = max(player.health-20, 0)
|
||||
print("Player Health: "+str(player.health))
|
||||
playerHurt.emit(player.health, player.max_health)
|
||||
|
||||
if player.health <= 0:
|
||||
playerDeath.emit()
|
||||
|
||||
|
||||
|
||||
func coinCollected():
|
||||
totalCoinsCollected += 1
|
||||
print("DING! Coins collected: "+ str(totalCoinsCollected) )
|
||||
coinsUpdate.emit(totalCoinsCollected, totalCoins)
|
||||
|
||||
|
||||
|
||||
func bulletHit(body):
|
||||
print("Game controller knows bullet hit something")
|
||||
if body.is_in_group("destructables"):
|
||||
|
||||
destroyBox.emit(body)
|
||||
|
||||
totalCrates -= 1
|
||||
cratesDestroyed += 1
|
||||
|
||||
if totalCrates <=0:
|
||||
print("You Won...")
|
||||
currentLevel +=1
|
||||
if currentLevel >= levels.size():
|
||||
currentLevel = 0
|
||||
levelComplete.emit(levels[currentLevel])
|
||||
else:
|
||||
print("Crates Remaining: "+str(totalCrates) )
|
||||
|
||||
|
||||
# Coming from scenemanager
|
||||
func countCrates(value):
|
||||
totalCrates = value
|
||||
|
||||
|
||||
func countCoins(value):
|
||||
totalCoins = value
|
||||
|
||||
|
||||
func countBadGuys(value):
|
||||
totalBadGuys = value
|
||||
|
||||
|
||||
func playerDead():
|
||||
print("GC knows player is dead")
|
||||
levelComplete.emit(levels[currentLevel])
|
||||
@@ -0,0 +1,5 @@
|
||||
class_name CharacterStats extends Resource
|
||||
|
||||
@export var max_health:int = 100
|
||||
@export var starting_health:int = 100
|
||||
@export var health:int = 100
|
||||
@@ -0,0 +1,9 @@
|
||||
[gd_resource type="Resource" script_class="CharacterStats" load_steps=2 format=3 uid="uid://hdyv13v8yr88"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/res/characterStats.gd" id="1_d4qjr"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_d4qjr")
|
||||
max_health = 150
|
||||
starting_health = 100
|
||||
health = 100
|
||||
@@ -0,0 +1,9 @@
|
||||
[gd_resource type="Resource" script_class="CharacterStats" load_steps=2 format=3 uid="uid://3vw8xffecvtj"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/res/characterStats.gd" id="1_74dik"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_74dik")
|
||||
max_health = 60
|
||||
starting_health = 50
|
||||
health = 50
|
||||
+46
-4
@@ -1,17 +1,59 @@
|
||||
extends Node
|
||||
@onready var game: Node2D = $".."
|
||||
# @onready var game: Node2D = $".."
|
||||
|
||||
@onready var crates: Node2D = $"../crates"
|
||||
@onready var coins: Node2D = $"../coins"
|
||||
@onready var enemies: Node2D = $"../enemies"
|
||||
|
||||
@onready var player: CharacterBody2D = $"../CharacterBody2D"
|
||||
@onready var ui: Control = $"../CanvasLayer/ui"
|
||||
|
||||
var theBullet = preload("res://scenes/bullet.tscn")
|
||||
var bulletArray:Array = []
|
||||
var totalCrates := 0
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
game.destroyBox.connect(boxDestroy)
|
||||
var totalCrates = 0
|
||||
GameController.reset()
|
||||
GameController.destroyBox.connect(boxDestroy)
|
||||
for obj in crates.get_children():
|
||||
if obj.is_in_group("destructables"):
|
||||
totalCrates += 1
|
||||
GameController.countCrates(totalCrates)
|
||||
|
||||
var totalCoins = 0
|
||||
for obj in coins.get_children():
|
||||
if obj.is_in_group("collectibles"):
|
||||
totalCoins += 1
|
||||
obj.coinCollected.connect(GameController.coinCollected)
|
||||
GameController.countCoins(totalCoins)
|
||||
|
||||
var totalEnemies = 0
|
||||
for obj in enemies.get_children():
|
||||
if obj.is_in_group("enemies"):
|
||||
totalEnemies += 1
|
||||
obj.playerHurt.connect(GameController.playerDamaged)
|
||||
GameController.countBadGuys(totalEnemies)
|
||||
|
||||
GameController.countCrates(totalCrates)
|
||||
|
||||
# Player interactions
|
||||
GameController.playerHurt.connect(player.hurtPlayer)
|
||||
GameController.playerDeath.connect(player.killPlayer)
|
||||
# Subscribe to signals
|
||||
GameController.levelComplete.connect(changeLevel)
|
||||
player.deathAnimDone.connect(GameController.playerDead)
|
||||
|
||||
GameController.tick.connect(ui.timerUpdate)
|
||||
GameController.playerHurt.connect(ui.healthUpdate, ConnectFlags.CONNECT_DEFERRED)
|
||||
GameController.coinsUpdate.connect(ui.coinsUpdate)
|
||||
|
||||
GameController.reset()
|
||||
|
||||
|
||||
func changeLevel(level):
|
||||
print("New level")
|
||||
get_tree().change_scene_to_file(level)
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(_delta: float) -> void:
|
||||
@@ -42,7 +84,7 @@ func onBulletHit(bullet, body):
|
||||
bullet.position = Vector2(-100, -100)
|
||||
bullet.setSpeed(0)
|
||||
print("Scene manager knows bullet hit")
|
||||
game.bulletHit(body)
|
||||
GameController.bulletHit(body)
|
||||
|
||||
func boxDestroy(body):
|
||||
print("sceneMgr knows body destroyed")
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
extends Control
|
||||
|
||||
@onready var timer: Label = $VBoxContainer/HBoxContainer/MarginContainer3/timer
|
||||
@onready var health: Label = $VBoxContainer/HBoxContainer/MarginContainer/health
|
||||
@onready var coins: Label = $VBoxContainer/HBoxContainer/MarginContainer2/coins
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func timerUpdate(timeRemaining):
|
||||
if timeRemaining <= 0:
|
||||
timer.text = "OUT OF TIME"
|
||||
else:
|
||||
timer.text = "🕔: "+str(timeRemaining)
|
||||
|
||||
|
||||
func healthUpdate(healthRemaining, healthMax):
|
||||
if healthRemaining <= 0:
|
||||
health.text = " 💀 💀 💀 💀 "
|
||||
else:
|
||||
health.text = (" ❤️: "+str(healthRemaining)+"/"+str(healthMax))
|
||||
|
||||
|
||||
func coinsUpdate(collected, remaining):
|
||||
coins.text = ("🪙: "+str(collected)+"/"+str(remaining)+" ")
|
||||
Reference in new issue
Block a user