bad guys, collectibles, levels
This commit is contained in:
parent
bf048e3e7b
commit
ce71477b76
BIN
GodotProject/assets/graphics/collectibles/coin.png
Normal file
BIN
GodotProject/assets/graphics/collectibles/coin.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 500 B |
34
GodotProject/assets/graphics/collectibles/coin.png.import
Normal file
34
GodotProject/assets/graphics/collectibles/coin.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://coxj0fonj6qoe"
|
||||
path="res://.godot/imported/coin.png-20c0ec177f21de2ef8f2f0e70fa6fe8a.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/graphics/collectibles/coin.png"
|
||||
dest_files=["res://.godot/imported/coin.png-20c0ec177f21de2ef8f2f0e70fa6fe8a.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
|
BIN
GodotProject/assets/graphics/enemies/slime_purple.png
Normal file
BIN
GodotProject/assets/graphics/enemies/slime_purple.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
34
GodotProject/assets/graphics/enemies/slime_purple.png.import
Normal file
34
GodotProject/assets/graphics/enemies/slime_purple.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dnx3p16h7uu10"
|
||||
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
|
@ -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
|
||||
|
114
GodotProject/scenes/coin.tscn
Normal file
114
GodotProject/scenes/coin.tscn
Normal file
@ -0,0 +1,114 @@
|
||||
[gd_scene load_steps=17 format=3 uid="uid://crtf2vkqussp6"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/coin.gd" id="1_yevv6"]
|
||||
[ext_resource type="Texture2D" uid="uid://coxj0fonj6qoe" path="res://assets/graphics/collectibles/coin.png" id="2_q535a"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_rkkcd"]
|
||||
atlas = ExtResource("2_q535a")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_irxsk"]
|
||||
atlas = ExtResource("2_q535a")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_cx5e3"]
|
||||
atlas = ExtResource("2_q535a")
|
||||
region = Rect2(32, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_a7l6h"]
|
||||
atlas = ExtResource("2_q535a")
|
||||
region = Rect2(48, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_uqye8"]
|
||||
atlas = ExtResource("2_q535a")
|
||||
region = Rect2(64, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_l7glg"]
|
||||
atlas = ExtResource("2_q535a")
|
||||
region = Rect2(80, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_f7gmn"]
|
||||
atlas = ExtResource("2_q535a")
|
||||
region = Rect2(96, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_fywnm"]
|
||||
atlas = ExtResource("2_q535a")
|
||||
region = Rect2(112, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2t5x8"]
|
||||
atlas = ExtResource("2_q535a")
|
||||
region = Rect2(128, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0hssl"]
|
||||
atlas = ExtResource("2_q535a")
|
||||
region = Rect2(144, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_saqy0"]
|
||||
atlas = ExtResource("2_q535a")
|
||||
region = Rect2(160, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_moivf"]
|
||||
atlas = ExtResource("2_q535a")
|
||||
region = Rect2(176, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_t1dng"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_rkkcd")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_irxsk")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_cx5e3")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_a7l6h")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_uqye8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_l7glg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_f7gmn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_fywnm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2t5x8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0hssl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_saqy0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_moivf")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 12.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_7fkel"]
|
||||
radius = 5.0
|
||||
|
||||
[node name="Area2D" type="Area2D" groups=["collectibles"]]
|
||||
script = ExtResource("1_yevv6")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
sprite_frames = SubResource("SpriteFrames_t1dng")
|
||||
animation = &"idle"
|
||||
autoplay = "idle"
|
||||
frame_progress = 0.194521
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_7fkel")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
@ -1,7 +1,6 @@
|
||||
[gd_scene load_steps=14 format=4 uid="uid://cxnmaxykhbgaq"]
|
||||
[gd_scene load_steps=15 format=4 uid="uid://cxnmaxykhbgaq"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://63qb2drh1l33" path="res://scenes/crate.tscn" id="1_0wmww"]
|
||||
[ext_resource type="Script" path="res://scripts/gamecontroller.gd" id="1_5dy8j"]
|
||||
[ext_resource type="Script" path="res://scripts/Trigger.gd" id="3_4laji"]
|
||||
[ext_resource type="Texture2D" uid="uid://xfytknjv7u4t" path="res://assets/graphics/terrains/backgrounds/forestbackground.png" id="3_7maxs"]
|
||||
[ext_resource type="Texture2D" uid="uid://cpnkcukncgjj6" path="res://assets/graphics/terrains/backgrounds/skystrip.png" id="3_qqljm"]
|
||||
@ -9,6 +8,8 @@
|
||||
[ext_resource type="Texture2D" uid="uid://ywtw6acl17qh" path="res://assets/graphics/terrains/backgrounds/trees.png" id="4_k11mw"]
|
||||
[ext_resource type="Script" path="res://scripts/scene_manager.gd" id="6_duuox"]
|
||||
[ext_resource type="Texture2D" uid="uid://c7gfcwmohp6th" path="res://assets/graphics/terrains/Terrain (32x32).png" id="7_ogiiy"]
|
||||
[ext_resource type="PackedScene" uid="uid://crtf2vkqussp6" path="res://scenes/coin.tscn" id="9_5tydy"]
|
||||
[ext_resource type="PackedScene" uid="uid://cydfsa8y0pare" path="res://scenes/purpleslime.tscn" id="10_6gyln"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_06fpy"]
|
||||
texture = ExtResource("7_ogiiy")
|
||||
@ -389,7 +390,6 @@ sources/0 = SubResource("TileSetAtlasSource_06fpy")
|
||||
radius = 34.1321
|
||||
|
||||
[node name="game" type="Node2D"]
|
||||
script = ExtResource("1_5dy8j")
|
||||
|
||||
[node name="SceneManager" type="Node" parent="."]
|
||||
unique_name_in_owner = true
|
||||
@ -400,8 +400,8 @@ scroll_scale = Vector2(0.1, 1)
|
||||
repeat_size = Vector2(320, 0)
|
||||
|
||||
[node name="Sprite2D2" type="Sprite2D" parent="Background"]
|
||||
position = Vector2(117, 53.5)
|
||||
scale = Vector2(1.26875, 12.8333)
|
||||
position = Vector2(117, -8.00026)
|
||||
scale = Vector2(1.26875, 16.9333)
|
||||
texture = ExtResource("3_qqljm")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Background"]
|
||||
@ -420,14 +420,14 @@ texture = ExtResource("4_k11mw")
|
||||
|
||||
[node name="TileMapLayer" type="TileMapLayer" parent="."]
|
||||
position = Vector2(25, 6)
|
||||
tile_map_data = PackedByteArray("AAD//wUAAAAAAAIAAAAAAAUAAAAJAAQAAAABAAUAAAABAAQAAAACAAUAAAABAAQAAAADAAUAAAABAAQAAAAEAAUAAAABAAQAAAAFAAUAAAABAAQAAAAGAAUAAAABAAQAAAAHAAUAAAABAAQAAAAIAAUAAAABAAQAAAAJAAUAAAABAAQAAAAKAAUAAAABAAQAAAALAAUAAAABAAQAAAAMAAUAAAABAAQAAAANAAUAAAABAAQAAAAOAAUAAAABAAQAAAAPAAUAAAABAAQAAAAQAAUAAAABAAQAAAARAAUAAAABAAQAAAASAAUAAAABAAQAAAATAAUAAAABAAQAAAAUAAUAAAABAAQAAAAVAAUAAAABAAQAAAAWAAUAAAABAAQAAAAXAAUAAAABAAQAAAAYAAUAAAABAAQAAAAZAAUAAAAQAAQAAAAKAAMAAAAAAAQAAAALAAMAAAABAAQAAAAMAAMAAAABAAQAAAANAAMAAAABAAQAAAAOAAMAAAAKAAQAAAAPAAMAAAABAAIAAAAOAAIAAAAAAAAAAAAPAAIAAAABAAAAAAAQAAIAAAABAAAAAAARAAIAAAABAAAAAAASAAIAAAACAAAAAAASAAMAAAACAAIAAAARAAMAAAABAAIAAAAQAAMAAAABAAIAAAD//wAAAAAEAAAAAAD//wEAAAAEAAEAAAD//wIAAAAEAAEAAAD//wMAAAAEAAEAAAAAAAQAAAACAAAAAAD//wQAAAAMAAAAAAAZAAQAAAAEAAEAAAAZAAMAAAAEAAEAAAAZAAIAAAAEAAEAAAAZAAEAAAAEAAEAAAAZAAAAAAAEAAAAAAA=")
|
||||
tile_map_data = PackedByteArray("AAD//wUAAAAAAAIAAAAAAAUAAAAJAAQAAAABAAUAAAABAAQAAAACAAUAAAAKAAQAAAADAAUAAAAJAAQAAAAEAAUAAAABAAQAAAAFAAUAAAABAAQAAAAGAAUAAAABAAQAAAAHAAUAAAABAAQAAAAIAAUAAAABAAQAAAAJAAUAAAABAAQAAAAKAAUAAAABAAQAAAALAAUAAAABAAQAAAAMAAUAAAABAAQAAAANAAUAAAABAAQAAAAOAAUAAAABAAQAAAAPAAUAAAABAAQAAAAQAAUAAAABAAQAAAARAAUAAAABAAQAAAASAAUAAAABAAQAAAATAAUAAAABAAQAAAAUAAUAAAABAAQAAAAVAAUAAAABAAQAAAAWAAUAAAABAAQAAAAXAAUAAAABAAQAAAAYAAUAAAABAAQAAAAZAAUAAAAQAAQAAAAKAAMAAAAAAAQAAAALAAMAAAABAAQAAAAMAAMAAAABAAQAAAANAAMAAAABAAQAAAAOAAMAAAAKAAQAAAAPAAMAAAABAAIAAAAOAAIAAAAAAAAAAAAPAAIAAAABAAAAAAAQAAIAAAAPAAEAAAARAAIAAAAGAAEAAAASAAIAAAACAAAAAAASAAMAAAACAAIAAAARAAMAAAABAAIAAAAQAAMAAAABAAIAAAD//wAAAAAEAAAAAAD//wEAAAAEAAEAAAD//wIAAAAEAAEAAAD//wMAAAAEAAEAAAAAAAQAAAACAAAAAAD//wQAAAAMAAAAAAAZAAQAAAAEAAEAAAAZAAMAAAAEAAEAAAAZAAIAAAAEAAEAAAAZAAEAAAAEAAEAAAAZAAAAAAAEAAAAAAARAAEAAAACAAAAAAAQAAEAAAAAAAAAAAACAAQAAAAAAAAAAAADAAQAAAACAAAAAAA=")
|
||||
tile_set = SubResource("TileSet_51dbi")
|
||||
|
||||
[node name="CharacterBody2D" parent="." instance=ExtResource("3_w28al")]
|
||||
position = Vector2(169, 90)
|
||||
|
||||
[node name="StaticBody2D2" type="StaticBody2D" parent="."]
|
||||
position = Vector2(299, 174)
|
||||
position = Vector2(291, 310)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2"]
|
||||
@ -455,5 +455,18 @@ rotation = 0.688747
|
||||
position = Vector2(391, 64)
|
||||
rotation = 0.358379
|
||||
|
||||
[node name="coins" type="Node2D" parent="."]
|
||||
|
||||
[node name="Area2D" parent="coins" instance=ExtResource("9_5tydy")]
|
||||
position = Vector2(443, 93)
|
||||
|
||||
[node name="Area2D2" parent="coins" instance=ExtResource("9_5tydy")]
|
||||
position = Vector2(57, 115)
|
||||
|
||||
[node name="enemies" type="Node2D" parent="."]
|
||||
|
||||
[node name="Area2D" parent="enemies" instance=ExtResource("10_6gyln")]
|
||||
position = Vector2(105, 122)
|
||||
|
||||
[connection signal="alert" from="Trigger" to="." method="_on_trigger_alert"]
|
||||
[connection signal="body_entered" from="Trigger" to="Trigger" method="_on_body_entered"]
|
||||
|
472
GodotProject/scenes/level2.tscn
Normal file
472
GodotProject/scenes/level2.tscn
Normal file
@ -0,0 +1,472 @@
|
||||
[gd_scene load_steps=15 format=4 uid="uid://o0v5c7tcpi8o"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/scene_manager.gd" id="1_rlteh"]
|
||||
[ext_resource type="Texture2D" uid="uid://cpnkcukncgjj6" path="res://assets/graphics/terrains/backgrounds/skystrip.png" id="2_yeti2"]
|
||||
[ext_resource type="Texture2D" uid="uid://xfytknjv7u4t" path="res://assets/graphics/terrains/backgrounds/forestbackground.png" id="3_r50tl"]
|
||||
[ext_resource type="Texture2D" uid="uid://ywtw6acl17qh" path="res://assets/graphics/terrains/backgrounds/trees.png" id="4_axi0m"]
|
||||
[ext_resource type="Texture2D" uid="uid://c7gfcwmohp6th" path="res://assets/graphics/terrains/Terrain (32x32).png" id="5_lciyl"]
|
||||
[ext_resource type="PackedScene" uid="uid://c1cuiluq1fcpk" path="res://scenes/player.tscn" id="6_l2qsn"]
|
||||
[ext_resource type="Script" path="res://scripts/Trigger.gd" id="7_r1pjc"]
|
||||
[ext_resource type="PackedScene" uid="uid://63qb2drh1l33" path="res://scenes/crate.tscn" id="8_dy7dj"]
|
||||
[ext_resource type="PackedScene" uid="uid://crtf2vkqussp6" path="res://scenes/coin.tscn" id="9_be6s8"]
|
||||
[ext_resource type="PackedScene" uid="uid://cydfsa8y0pare" path="res://scenes/purpleslime.tscn" id="10_s14sl"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_06fpy"]
|
||||
texture = ExtResource("5_lciyl")
|
||||
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, 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, -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, -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/physics_layer_0/polygon_0/points = PackedVector2Array(-16, 0.5, -5.25, 0.25, -4.5, 16, -16, 16)
|
||||
7:0/0/terrains_peering_bit/right_side = 0
|
||||
7:0/0/terrains_peering_bit/bottom_right_corner = 0
|
||||
7:0/0/terrains_peering_bit/bottom_side = 0
|
||||
7:0/0/terrains_peering_bit/left_side = 0
|
||||
7:0/0/terrains_peering_bit/top_left_corner = 0
|
||||
7:0/0/terrains_peering_bit/top_side = 0
|
||||
7:0/0/terrains_peering_bit/top_right_corner = 0
|
||||
9:0/0 = 0
|
||||
9:0/0/terrain_set = 0
|
||||
9:0/0/terrain = 0
|
||||
9:0/0/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/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, 16, -16, 16, 16, -16, 16)
|
||||
0:1/0/terrains_peering_bit/right_side = 0
|
||||
0:1/0/terrains_peering_bit/bottom_right_corner = 0
|
||||
0:1/0/terrains_peering_bit/bottom_side = 0
|
||||
0:1/0/terrains_peering_bit/top_side = 0
|
||||
0:1/0/terrains_peering_bit/top_right_corner = 0
|
||||
1:1/0 = 0
|
||||
1:1/0/terrain_set = 0
|
||||
1:1/0/terrain = 0
|
||||
1:1/0/terrains_peering_bit/right_side = 0
|
||||
1:1/0/terrains_peering_bit/bottom_right_corner = 0
|
||||
1:1/0/terrains_peering_bit/bottom_side = 0
|
||||
1:1/0/terrains_peering_bit/bottom_left_corner = 0
|
||||
1:1/0/terrains_peering_bit/left_side = 0
|
||||
1:1/0/terrains_peering_bit/top_left_corner = 0
|
||||
1:1/0/terrains_peering_bit/top_side = 0
|
||||
1:1/0/terrains_peering_bit/top_right_corner = 0
|
||||
2:1/0 = 0
|
||||
2:1/0/terrain_set = 0
|
||||
2:1/0/terrain = 0
|
||||
2:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
2:1/0/terrains_peering_bit/bottom_side = 0
|
||||
2:1/0/terrains_peering_bit/bottom_left_corner = 0
|
||||
2:1/0/terrains_peering_bit/left_side = 0
|
||||
2:1/0/terrains_peering_bit/top_left_corner = 0
|
||||
2:1/0/terrains_peering_bit/top_side = 0
|
||||
4:1/0 = 0
|
||||
4:1/0/terrain_set = 0
|
||||
4:1/0/terrain = 0
|
||||
4:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
4:1/0/terrains_peering_bit/bottom_side = 0
|
||||
4:1/0/terrains_peering_bit/top_side = 0
|
||||
6:1/0 = 0
|
||||
6:1/0/terrain_set = 0
|
||||
6:1/0/terrain = 0
|
||||
6:1/0/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_left_corner = 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/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, -4.75, 16, -11.75, 12.75, -16, 4.25)
|
||||
0:2/0/terrains_peering_bit/right_side = 0
|
||||
0:2/0/terrains_peering_bit/top_side = 0
|
||||
0:2/0/terrains_peering_bit/top_right_corner = 0
|
||||
1:2/0 = 0
|
||||
1:2/0/terrain_set = 0
|
||||
1:2/0/terrain = 0
|
||||
1:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
1:2/0/terrains_peering_bit/right_side = 0
|
||||
1:2/0/terrains_peering_bit/left_side = 0
|
||||
1:2/0/terrains_peering_bit/top_left_corner = 0
|
||||
1:2/0/terrains_peering_bit/top_side = 0
|
||||
1:2/0/terrains_peering_bit/top_right_corner = 0
|
||||
2:2/0 = 0
|
||||
2:2/0/terrain_set = 0
|
||||
2:2/0/terrain = 0
|
||||
2:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 7.5, 12, 12.75, 5.75, 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, 5, 12.5, 11.75, 3.5, 16, -4, 16, -10.75, 11.75, -16, 4.5)
|
||||
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.75, -16, 2.5, 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(16, -16, 16, 16, 4.75, 16, 4, -16)
|
||||
7:3/0/physics_layer_0/polygon_1/points = PackedVector2Array(-16, 0.5, -5.25, 0.25, -4.5, 16, -16, 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, -1.25, -16, -1.75)
|
||||
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, -1.25, -16, -1.75)
|
||||
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, -2.5, -16, -2.5, 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, 5, -16, 4.5)
|
||||
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, -1.25, 1.5, -1, 1.5, 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, 3.25, 16, 1.75, 0.25, -16, -1)
|
||||
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, -4, 16, -11.25, 12.25, -16, 5)
|
||||
0:4/0/terrains_peering_bit/right_side = 0
|
||||
1:4/0 = 0
|
||||
1:4/0/terrain_set = 0
|
||||
1:4/0/terrain = 0
|
||||
1:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)
|
||||
1:4/0/terrains_peering_bit/right_side = 0
|
||||
1:4/0/terrains_peering_bit/left_side = 0
|
||||
2:4/0 = 0
|
||||
2:4/0/terrain_set = 0
|
||||
2:4/0/terrain = 0
|
||||
2:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 5, 12.5, 11.75, 3.5, 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, 5, 12.5, 11.75, 3.5, 16, -4, 16, -10.75, 11.75, -16, 4.5)
|
||||
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.75, -16, 2.5, 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.25, -16, 16, -16, 16, 16, -0.25, 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, 3.25, 16, 3.25, 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, 3.25, 16, 3.25, 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, 2, 16, 1.5, 16, 16, -16, 16)
|
||||
12:4/0/terrains_peering_bit/right_side = 0
|
||||
12:4/0/terrains_peering_bit/left_side = 0
|
||||
12:4/0/terrains_peering_bit/top_side = 0
|
||||
13:4/0 = 0
|
||||
13:4/0/terrain_set = 0
|
||||
13:4/0/terrain = 0
|
||||
13:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-2.5, -16, 16, -16, 16, 16, -0.25, 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(1, -16, 3, -2.25, 16, -1.75, 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(0.25, 1, 1, -16, 16, -16, 16, 16, -16, 16, -16, 1.5)
|
||||
16:4/0/terrains_peering_bit/left_side = 0
|
||||
16:4/0/terrains_peering_bit/top_side = 0
|
||||
|
||||
[sub_resource type="TileSet" id="TileSet_51dbi"]
|
||||
tile_size = Vector2i(32, 32)
|
||||
physics_layer_0/collision_layer = 1
|
||||
terrain_set_0/mode = 0
|
||||
terrain_set_0/terrain_0/name = "Leafy ground"
|
||||
terrain_set_0/terrain_0/color = Color(0.5, 0.34375, 0.25, 1)
|
||||
sources/0 = SubResource("TileSetAtlasSource_06fpy")
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_k1pyx"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_wdyhk"]
|
||||
radius = 34.1321
|
||||
|
||||
[node name="game" type="Node2D"]
|
||||
|
||||
[node name="SceneManager" type="Node" parent="."]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("1_rlteh")
|
||||
|
||||
[node name="Background" type="Parallax2D" parent="."]
|
||||
scroll_scale = Vector2(0.1, 1)
|
||||
repeat_size = Vector2(320, 0)
|
||||
|
||||
[node name="Sprite2D2" type="Sprite2D" parent="Background"]
|
||||
position = Vector2(117, -8.00026)
|
||||
scale = Vector2(1.26875, 16.9333)
|
||||
texture = ExtResource("2_yeti2")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Background"]
|
||||
texture_filter = 1
|
||||
position = Vector2(164, 84)
|
||||
texture = ExtResource("3_r50tl")
|
||||
|
||||
[node name="Parallax2D" type="Parallax2D" parent="."]
|
||||
scroll_scale = Vector2(0.5, 1)
|
||||
repeat_size = Vector2(320, 0)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Parallax2D"]
|
||||
texture_filter = 1
|
||||
position = Vector2(160, 90)
|
||||
texture = ExtResource("4_axi0m")
|
||||
|
||||
[node name="TileMapLayer" type="TileMapLayer" parent="."]
|
||||
position = Vector2(25, 6)
|
||||
tile_map_data = PackedByteArray("AAD//wUAAAAAAAIAAAAAAAUAAAAJAAQAAAABAAUAAAABAAQAAAACAAUAAAABAAQAAAADAAUAAAABAAQAAAAEAAUAAAABAAQAAAAFAAUAAAABAAQAAAAGAAUAAAABAAQAAAAHAAUAAAAKAAQAAAAIAAUAAAABAAIAAAAJAAUAAAABAAIAAAAKAAUAAAABAAIAAAALAAUAAAABAAIAAAAMAAUAAAABAAIAAAANAAUAAAABAAIAAAAOAAUAAAABAAIAAAAPAAUAAAABAAIAAAAQAAUAAAABAAIAAAARAAUAAAABAAIAAAASAAUAAAABAAIAAAATAAUAAAABAAIAAAAUAAUAAAAJAAQAAAAVAAUAAAABAAQAAAAWAAUAAAABAAQAAAAXAAUAAAABAAQAAAAYAAUAAAABAAQAAAAZAAUAAAAQAAQAAAAKAAMAAAAHAAEAAAALAAMAAAABAAEAAAAMAAMAAAABAAEAAAANAAMAAAABAAEAAAAOAAMAAAABAAEAAAAPAAMAAAABAAEAAAAOAAIAAAABAAAAAAAPAAIAAAABAAAAAAAQAAIAAAABAAAAAAARAAIAAAABAAAAAAASAAIAAAACAAAAAAASAAMAAAACAAEAAAARAAMAAAABAAEAAAAQAAMAAAABAAEAAAD//wAAAAAEAAAAAAD//wEAAAAEAAEAAAD//wIAAAAEAAEAAAD//wMAAAAEAAEAAAAAAAQAAAACAAAAAAD//wQAAAAMAAAAAAAZAAQAAAAEAAEAAAAZAAMAAAAEAAEAAAAZAAIAAAAEAAEAAAAZAAEAAAAEAAEAAAAZAAAAAAAEAAAAAAAKAAEAAAAAAAAAAAAKAAIAAAAPAAEAAAALAAIAAAABAAEAAAAMAAIAAAAGAAEAAAANAAIAAAABAAAAAAAKAAQAAAABAAEAAAALAAQAAAABAAEAAAAMAAQAAAABAAEAAAANAAQAAAABAAEAAAAOAAQAAAABAAEAAAAPAAQAAAABAAEAAAAJAAQAAAABAAEAAAAIAAQAAAABAAAAAAAJAAMAAAAAAAEAAAAHAAQAAAAAAAAAAAAJAAIAAAAAAAAAAAALAAEAAAABAAAAAAAMAAEAAAACAAAAAAATAAQAAAABAAAAAAASAAQAAAAGAAEAAAARAAQAAAABAAEAAAAQAAQAAAABAAEAAAAUAAQAAAACAAAAAAA=")
|
||||
tile_set = SubResource("TileSet_51dbi")
|
||||
|
||||
[node name="CharacterBody2D" parent="." instance=ExtResource("6_l2qsn")]
|
||||
position = Vector2(169, 90)
|
||||
|
||||
[node name="StaticBody2D2" type="StaticBody2D" parent="."]
|
||||
position = Vector2(299, 174)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2"]
|
||||
shape = SubResource("WorldBoundaryShape2D_k1pyx")
|
||||
|
||||
[node name="Trigger" type="Area2D" parent="."]
|
||||
position = Vector2(735, 116)
|
||||
script = ExtResource("7_r1pjc")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Trigger"]
|
||||
shape = SubResource("CircleShape2D_wdyhk")
|
||||
debug_color = Color(0.466667, 0.592157, 0, 0.419608)
|
||||
|
||||
[node name="crates" type="Node2D" parent="."]
|
||||
|
||||
[node name="RigidBody2D3" parent="crates" instance=ExtResource("8_dy7dj")]
|
||||
position = Vector2(418, 28)
|
||||
|
||||
[node name="RigidBody2D" parent="crates" instance=ExtResource("8_dy7dj")]
|
||||
position = Vector2(468, -53)
|
||||
rotation = 0.688747
|
||||
|
||||
[node name="RigidBody2D2" parent="crates" instance=ExtResource("8_dy7dj")]
|
||||
position = Vector2(551, -8.99999)
|
||||
rotation = 0.358379
|
||||
|
||||
[node name="coins" type="Node2D" parent="."]
|
||||
|
||||
[node name="Area2D" parent="coins" instance=ExtResource("9_be6s8")]
|
||||
position = Vector2(463, 60)
|
||||
|
||||
[node name="Area2D2" parent="coins" instance=ExtResource("9_be6s8")]
|
||||
position = Vector2(57, 115)
|
||||
|
||||
[node name="enemies" type="Node2D" parent="."]
|
||||
|
||||
[node name="Area2D" parent="enemies" instance=ExtResource("10_s14sl")]
|
||||
position = Vector2(99, 154)
|
||||
|
||||
[connection signal="alert" from="Trigger" to="." method="_on_trigger_alert"]
|
||||
[connection signal="body_entered" from="Trigger" to="Trigger" method="_on_body_entered"]
|
74
GodotProject/scenes/purpleslime.tscn
Normal file
74
GodotProject/scenes/purpleslime.tscn
Normal file
@ -0,0 +1,74 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://cydfsa8y0pare"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/purpleslime.gd" id="1_03sou"]
|
||||
[ext_resource type="Texture2D" uid="uid://dnx3p16h7uu10" path="res://assets/graphics/enemies/slime_purple.png" id="1_jepv4"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jrp4r"]
|
||||
atlas = ExtResource("1_jepv4")
|
||||
region = Rect2(0, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2edr0"]
|
||||
atlas = ExtResource("1_jepv4")
|
||||
region = Rect2(24, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_71vcq"]
|
||||
atlas = ExtResource("1_jepv4")
|
||||
region = Rect2(48, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_js5bb"]
|
||||
atlas = ExtResource("1_jepv4")
|
||||
region = Rect2(72, 24, 24, 24)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_vbboo"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jrp4r")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2edr0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_71vcq")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_js5bb")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 12.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_3mkso"]
|
||||
size = Vector2(12, 13)
|
||||
|
||||
[node name="Area2D" type="Area2D" groups=["enemies"]]
|
||||
script = ExtResource("1_03sou")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
sprite_frames = SubResource("SpriteFrames_vbboo")
|
||||
animation = &"idle"
|
||||
autoplay = "idle"
|
||||
frame_progress = 0.202321
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, 5.5)
|
||||
shape = SubResource("RectangleShape2D_3mkso")
|
||||
|
||||
[node name="rightray" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(11, 0)
|
||||
|
||||
[node name="leftray" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(-11, 0)
|
||||
|
||||
[node name="rightfloorray" type="RayCast2D" parent="."]
|
||||
position = Vector2(7, 0)
|
||||
target_position = Vector2(0, 13)
|
||||
|
||||
[node name="leftfloorray" type="RayCast2D" parent="."]
|
||||
position = Vector2(-7, 0)
|
||||
target_position = Vector2(0, 13)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
8
GodotProject/scripts/coin.gd
Normal file
8
GodotProject/scripts/coin.gd
Normal file
@ -0,0 +1,8 @@
|
||||
class_name Coin extends Area2D
|
||||
|
||||
signal coinCollected
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
if body.is_in_group("player"):
|
||||
coinCollected.emit()
|
||||
queue_free()
|
@ -1,41 +1,74 @@
|
||||
extends Node2D
|
||||
var totalBoxes = 3
|
||||
var timer:= Timer.new()
|
||||
var countdown = 10
|
||||
var totalCrates = 0
|
||||
var totalCrates := 0
|
||||
var cratesDestroyed := 0
|
||||
var totalCoins := 0
|
||||
var totalCoinsCollected := 0
|
||||
|
||||
var totalEnemies := 0
|
||||
#level information
|
||||
var levels = ["res://scenes/game.tscn","res://scenes/level2.tscn"]
|
||||
var timers = [10,15]
|
||||
var currentLevel = 0
|
||||
|
||||
var player:Resource
|
||||
# signals from game controller
|
||||
signal destroyBox(body)
|
||||
|
||||
signal levelComplete(levelToLoad)
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
player = load("res://scripts/res/playerstats.tres")
|
||||
print("Player health: "+str(player.health))
|
||||
print("Number of levels: "+str(levels.size()))
|
||||
reset()
|
||||
add_child(timer)
|
||||
timer.wait_time = 1
|
||||
timer.one_shot = false
|
||||
timer.connect("timeout", secondCounter)
|
||||
# timer.start()
|
||||
timer.start()
|
||||
|
||||
func reset():
|
||||
countdown = timers[currentLevel]
|
||||
func secondCounter():
|
||||
countdown -=1
|
||||
print("minus one")
|
||||
if countdown <=0:
|
||||
print("you lose")
|
||||
get_tree().reload_current_scene()
|
||||
levelComplete.emit(levels[currentLevel])
|
||||
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
|
||||
func _on_trigger_alert(body):
|
||||
totalBoxes -=1
|
||||
body.queue_free()
|
||||
if totalBoxes <=0:
|
||||
print("you won")
|
||||
get_tree().reload_current_scene()
|
||||
func coinCollected():
|
||||
print("gane cotroller knows coin collected")
|
||||
totalCoinsCollected+=1
|
||||
|
||||
func playerDamaged():
|
||||
player.health -= 20
|
||||
print("game controller knows player damaged, health is now "+str(player.health))
|
||||
|
||||
func bulletHit(body):
|
||||
print("game controller knows bullet hit something")
|
||||
if body.is_in_group("destructable"):
|
||||
destroyBox.emit(body)
|
||||
|
||||
func coutnCrates(value):
|
||||
totalCrates -=1
|
||||
cratesDestroyed +=1
|
||||
body.queue_free()
|
||||
if totalCrates <=0:
|
||||
print("you won")
|
||||
#refactor this --make it a single
|
||||
currentLevel +=1
|
||||
if currentLevel >= levels.size():
|
||||
currentLevel = 0
|
||||
levelComplete.emit(levels[currentLevel])
|
||||
else:
|
||||
print("crates remaining: "+str(totalCrates))
|
||||
# scene manager stuff
|
||||
func countCrates(value):
|
||||
totalCrates = value
|
||||
func countCoins(value):
|
||||
totalCoins = value
|
||||
|
27
GodotProject/scripts/purpleslime.gd
Normal file
27
GodotProject/scripts/purpleslime.gd
Normal file
@ -0,0 +1,27 @@
|
||||
class_name purpleslime extends Area2D
|
||||
@onready var sprite: AnimatedSprite2D = $AnimatedSprite2D
|
||||
@onready var rightray: RayCast2D = $rightray
|
||||
@onready var leftray: RayCast2D = $leftray
|
||||
@onready var rightfloorray: RayCast2D = $rightfloorray
|
||||
@onready var leftfloorray: RayCast2D = $leftfloorray
|
||||
const speed = 60
|
||||
var direction = 1
|
||||
#signals
|
||||
signal playerDamage
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if not rightfloorray.is_colliding():
|
||||
direction = -1
|
||||
sprite.flip_h = true
|
||||
#about to fall on the right
|
||||
if not leftfloorray.is_colliding():
|
||||
direction = 1
|
||||
sprite.flip_h = false
|
||||
#about to fall on the right
|
||||
position.x += direction * speed * delta
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
if body.is_in_group("player"):
|
||||
print("bad guy collected")
|
||||
playerDamage.emit()
|
||||
if body.is_in_group("destructable"):
|
||||
print("box hit")
|
5
GodotProject/scripts/res/characterstats.gd
Normal file
5
GodotProject/scripts/res/characterstats.gd
Normal file
@ -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
|
9
GodotProject/scripts/res/playerstats.tres
Normal file
9
GodotProject/scripts/res/playerstats.tres
Normal file
@ -0,0 +1,9 @@
|
||||
[gd_resource type="Resource" script_class="CharacterStats" load_steps=2 format=3 uid="uid://bamuvf71pw641"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/res/characterstats.gd" id="1_6olhj"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_6olhj")
|
||||
max_health = 100
|
||||
starting_health = 100
|
||||
health = 100
|
9
GodotProject/scripts/res/slimestats.tres
Normal file
9
GodotProject/scripts/res/slimestats.tres
Normal file
@ -0,0 +1,9 @@
|
||||
[gd_resource type="Resource" script_class="CharacterStats" load_steps=2 format=3 uid="uid://u3yqeui6rnih"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/res/characterstats.gd" id="1_smxrk"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_smxrk")
|
||||
max_health = 60
|
||||
starting_health = 50
|
||||
health = 50
|
@ -1,22 +1,40 @@
|
||||
extends Node
|
||||
@onready var game: Node2D = $".."
|
||||
@onready var crates: Node2D = $"../crates"
|
||||
@onready var coins: Node2D = $"../coins"
|
||||
@onready var enemies: Node2D = $"../enemies"
|
||||
|
||||
|
||||
var bullet = preload("res://scenes/bullet.tscn")
|
||||
var bulletArray:Array = []
|
||||
var bulletMadeTotal:= 0
|
||||
|
||||
var totalCrates := 0
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
game.destroyBox.connect(boxDestroy)
|
||||
#give game controller number of crates
|
||||
Gamecontroller.destroyBox.connect(boxDestroy)
|
||||
for obj in crates.get_children():
|
||||
if obj.is_in_group("destructable"):
|
||||
#increase box counter
|
||||
totalCrates +=1
|
||||
var totalCoins = 0
|
||||
for obj in coins.get_children():
|
||||
if obj.is_in_group("collectibles"):
|
||||
totalCoins+=1
|
||||
obj.coinCollected.connect(Gamecontroller.coinCollected)
|
||||
var totalEnemies = 0
|
||||
for obj in enemies.get_children():
|
||||
if obj.is_in_group("enemies"):
|
||||
totalEnemies += 1
|
||||
obj.playerDamage.connect(Gamecontroller.playerDamaged)
|
||||
|
||||
Gamecontroller.countCrates(totalCrates)
|
||||
|
||||
#subscribe to vital events from the game controller
|
||||
Gamecontroller.levelComplete.connect(changeLevel)
|
||||
Gamecontroller.reset()
|
||||
|
||||
func changeLevel(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:
|
||||
pass
|
||||
@ -45,7 +63,7 @@ func onBulletHit(bullet, body):
|
||||
bullet.setSpeed(0)
|
||||
|
||||
print("Scene manager knows bullet hit")
|
||||
game.bulletHit(body)
|
||||
Gamecontroller.bulletHit(body)
|
||||
|
||||
func boxDestroy(body):
|
||||
body.queue_free()
|
||||
|
Loading…
Reference in New Issue
Block a user