2025-04-15 00:58:05 +00:00
|
|
|
[gd_scene load_steps=9 format=3 uid="uid://ivno5uoip3x"]
|
2025-04-08 00:57:58 +00:00
|
|
|
|
|
|
|
[ext_resource type="Script" uid="uid://dyts3mw1bhitc" path="res://scripts/game_controller.gd" id="1_lnu2h"]
|
2025-04-15 00:58:05 +00:00
|
|
|
[ext_resource type="Script" uid="uid://7iv62cso22ox" path="res://scripts/scene_manager.gd" id="2_lbhrr"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://dsvb5ohioaj4w" path="res://scenes/player.tscn" id="2_lnu2h"]
|
2025-04-08 00:57:58 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://duq681f4tr7uv" path="res://scenes/trigger.tscn" id="3_lnu2h"]
|
2025-04-15 00:58:05 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://dbg8j3e6xwnil" path="res://scenes/crate.tscn" id="4_iywne"]
|
2025-04-08 00:57:58 +00:00
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8cj0n"]
|
|
|
|
size = Vector2(58, 20)
|
|
|
|
|
2025-04-15 00:58:05 +00:00
|
|
|
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_iywne"]
|
|
|
|
bounce = 0.35
|
2025-04-08 00:57:58 +00:00
|
|
|
|
2025-04-15 00:58:05 +00:00
|
|
|
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_uwrxv"]
|
2025-04-08 00:57:58 +00:00
|
|
|
|
|
|
|
[node name="Game" type="Node2D"]
|
|
|
|
script = ExtResource("1_lnu2h")
|
|
|
|
|
2025-04-15 00:58:05 +00:00
|
|
|
[node name="SceneManager" type="Node" parent="."]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
script = ExtResource("2_lbhrr")
|
2025-04-08 00:57:58 +00:00
|
|
|
|
2025-04-15 00:58:05 +00:00
|
|
|
[node name="CharacterBody2D" parent="." instance=ExtResource("2_lnu2h")]
|
|
|
|
position = Vector2(284, 616)
|
2025-04-08 00:57:58 +00:00
|
|
|
|
|
|
|
[node name="Level" type="Node2D" parent="."]
|
|
|
|
|
|
|
|
[node name="StaticBody2D" type="StaticBody2D" parent="Level"]
|
2025-04-15 00:58:05 +00:00
|
|
|
position = Vector2(192, 512)
|
2025-04-08 00:57:58 +00:00
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D"]
|
|
|
|
shape = SubResource("RectangleShape2D_8cj0n")
|
|
|
|
|
|
|
|
[node name="StaticBody2D8" type="StaticBody2D" parent="Level"]
|
2025-04-15 00:58:05 +00:00
|
|
|
position = Vector2(256, 576)
|
2025-04-08 00:57:58 +00:00
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D8"]
|
|
|
|
shape = SubResource("RectangleShape2D_8cj0n")
|
|
|
|
|
|
|
|
[node name="StaticBody2D9" type="StaticBody2D" parent="Level"]
|
2025-04-15 00:58:05 +00:00
|
|
|
position = Vector2(320, 576)
|
2025-04-08 00:57:58 +00:00
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D9"]
|
|
|
|
shape = SubResource("RectangleShape2D_8cj0n")
|
|
|
|
|
|
|
|
[node name="StaticBody2D10" type="StaticBody2D" parent="Level"]
|
2025-04-15 00:58:05 +00:00
|
|
|
position = Vector2(576, 512)
|
2025-04-08 00:57:58 +00:00
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D10"]
|
|
|
|
shape = SubResource("RectangleShape2D_8cj0n")
|
|
|
|
|
|
|
|
[node name="StaticBody2D11" type="StaticBody2D" parent="Level"]
|
2025-04-15 00:58:05 +00:00
|
|
|
position = Vector2(64, 576)
|
2025-04-08 00:57:58 +00:00
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D11"]
|
|
|
|
shape = SubResource("RectangleShape2D_8cj0n")
|
|
|
|
|
|
|
|
[node name="StaticBody2D12" type="StaticBody2D" parent="Level"]
|
2025-04-15 00:58:05 +00:00
|
|
|
position = Vector2(128, 512)
|
2025-04-08 00:57:58 +00:00
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D12"]
|
|
|
|
shape = SubResource("RectangleShape2D_8cj0n")
|
|
|
|
|
|
|
|
[node name="StaticBody2D5" type="StaticBody2D" parent="Level"]
|
2025-04-15 00:58:05 +00:00
|
|
|
position = Vector2(512, 576)
|
2025-04-08 00:57:58 +00:00
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D5"]
|
|
|
|
shape = SubResource("RectangleShape2D_8cj0n")
|
|
|
|
|
|
|
|
[node name="StaticBody2D6" type="StaticBody2D" parent="Level"]
|
2025-04-15 00:58:05 +00:00
|
|
|
position = Vector2(576, 576)
|
2025-04-08 00:57:58 +00:00
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D6"]
|
|
|
|
shape = SubResource("RectangleShape2D_8cj0n")
|
|
|
|
|
|
|
|
[node name="StaticBody2D7" type="StaticBody2D" parent="Level"]
|
2025-04-15 00:58:05 +00:00
|
|
|
position = Vector2(640, 576)
|
2025-04-08 00:57:58 +00:00
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/StaticBody2D7"]
|
|
|
|
shape = SubResource("RectangleShape2D_8cj0n")
|
|
|
|
|
|
|
|
[node name="Floor" type="StaticBody2D" parent="Level"]
|
|
|
|
position = Vector2(378, 643)
|
2025-04-15 00:58:05 +00:00
|
|
|
physics_material_override = SubResource("PhysicsMaterial_iywne")
|
2025-04-08 00:57:58 +00:00
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/Floor"]
|
|
|
|
shape = SubResource("WorldBoundaryShape2D_uwrxv")
|
|
|
|
|
|
|
|
[node name="Floor2" type="StaticBody2D" parent="Level"]
|
|
|
|
position = Vector2(22, 452)
|
|
|
|
rotation = 1.57079
|
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/Floor2"]
|
|
|
|
shape = SubResource("WorldBoundaryShape2D_uwrxv")
|
|
|
|
|
|
|
|
[node name="Floor3" type="StaticBody2D" parent="Level"]
|
|
|
|
position = Vector2(1031, 538)
|
|
|
|
rotation = -1.57079
|
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Level/Floor3"]
|
|
|
|
shape = SubResource("WorldBoundaryShape2D_uwrxv")
|
|
|
|
|
|
|
|
[node name="Crates" type="Node2D" parent="."]
|
|
|
|
|
2025-04-15 00:58:05 +00:00
|
|
|
[node name="Crate" parent="Crates" instance=ExtResource("4_iywne")]
|
|
|
|
position = Vector2(420, 534)
|
|
|
|
rotation = -0.35143
|
2025-04-08 00:57:58 +00:00
|
|
|
|
|
|
|
[node name="Trigger" parent="." instance=ExtResource("3_lnu2h")]
|
|
|
|
position = Vector2(299, 487)
|
|
|
|
|
|
|
|
[node name="Trigger2" parent="." instance=ExtResource("3_lnu2h")]
|
|
|
|
position = Vector2(769, 587)
|
|
|
|
effect = "Destroy"
|
|
|
|
|
|
|
|
[node name="Trigger3" parent="." instance=ExtResource("3_lnu2h")]
|
|
|
|
position = Vector2(808, 329)
|
|
|
|
effect = "Exit"
|
|
|
|
|
|
|
|
[connection signal="trigger_fired" from="Trigger" to="." method="_on_trigger_trigger_fired"]
|
|
|
|
[connection signal="trigger_fired" from="Trigger2" to="." method="_on_trigger_trigger_fired"]
|
|
|
|
[connection signal="trigger_fired" from="Trigger3" to="." method="_on_trigger_trigger_fired"]
|