118 lines
3.6 KiB
Plaintext
118 lines
3.6 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://d0g87756ww650"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/game.gd" id="1_a1yc7"]
|
|
[ext_resource type="PackedScene" uid="uid://c3i6a6ji8i1q8" path="res://scenes/player.tscn" id="1_fwjx1"]
|
|
[ext_resource type="PackedScene" uid="uid://d65w0p8s6dv4" path="res://scenes/chest.tscn" id="2_u0oqr"]
|
|
|
|
[sub_resource type="Curve2D" id="Curve2D_ipwxi"]
|
|
_data = {
|
|
"points": PackedVector2Array(0, 0, 0, 0, -741, -452, 0, 0, 0, 0, 539, -445, 0, 0, 0, 0, 533, 354, 0, 0, 0, 0, -737, 354, 0, 0, 0, 0, -724, -429)
|
|
}
|
|
point_count = 5
|
|
|
|
[node name="Game" type="Node2D"]
|
|
position = Vector2(678, 366)
|
|
script = ExtResource("1_a1yc7")
|
|
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
|
layer = -1
|
|
scale = Vector2(1.03, 1.03)
|
|
transform = Transform2D(1.03, 0, 0, 1.03, 0, 0)
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="CanvasLayer"]
|
|
offset_left = -8.0
|
|
offset_top = -7.0
|
|
offset_right = 1124.0
|
|
offset_bottom = 637.0
|
|
color = Color(0.726739, 0.942318, 0.74966, 1)
|
|
|
|
[node name="player" parent="." instance=ExtResource("1_fwjx1")]
|
|
position = Vector2(-91, -50)
|
|
|
|
[node name="Path2D" type="Path2D" parent="player"]
|
|
position = Vector2(91, 50)
|
|
curve = SubResource("Curve2D_ipwxi")
|
|
|
|
[node name="PathFollow2D" type="PathFollow2D" parent="player/Path2D"]
|
|
unique_name_in_owner = true
|
|
position = Vector2(-741, -452)
|
|
rotation = 0.0054687
|
|
|
|
[node name="Node" type="Node" parent="."]
|
|
|
|
[node name="Chest" parent="Node" instance=ExtResource("2_u0oqr")]
|
|
position = Vector2(515, 401)
|
|
|
|
[node name="Node2" type="Node" parent="."]
|
|
|
|
[node name="Chest" parent="Node2" instance=ExtResource("2_u0oqr")]
|
|
position = Vector2(742, 272)
|
|
|
|
[node name="Chest2" parent="Node2" instance=ExtResource("2_u0oqr")]
|
|
position = Vector2(439, 269)
|
|
|
|
[node name="Chest3" parent="Node2" instance=ExtResource("2_u0oqr")]
|
|
position = Vector2(403, 384)
|
|
|
|
[node name="Chest4" parent="Node2" instance=ExtResource("2_u0oqr")]
|
|
position = Vector2(834, 451)
|
|
|
|
[node name="Chest5" parent="Node2" instance=ExtResource("2_u0oqr")]
|
|
position = Vector2(718, 411)
|
|
|
|
[node name="Chest6" parent="Node2" instance=ExtResource("2_u0oqr")]
|
|
position = Vector2(826, 356)
|
|
|
|
[node name="Chest7" parent="Node2" instance=ExtResource("2_u0oqr")]
|
|
position = Vector2(821, 247)
|
|
|
|
[node name="Chest8" parent="Node2" instance=ExtResource("2_u0oqr")]
|
|
position = Vector2(735, 170)
|
|
|
|
[node name="Chest9" parent="Node2" instance=ExtResource("2_u0oqr")]
|
|
position = Vector2(614, 175)
|
|
|
|
[node name="Chest10" parent="Node2" instance=ExtResource("2_u0oqr")]
|
|
position = Vector2(342, 171)
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
position = Vector2(-85, -67)
|
|
zoom = Vector2(2, 2)
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
wait_time = 0.3
|
|
autostart = true
|
|
|
|
[node name="GameOver" type="CanvasLayer" parent="."]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="GameOver"]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0, 0, 0, 0.780392)
|
|
|
|
[node name="Label" type="Label" parent="GameOver"]
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -271.5
|
|
offset_top = -68.5
|
|
offset_right = 271.5
|
|
offset_bottom = 68.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_colors/font_color = Color(0.992157, 0, 0, 1)
|
|
theme_override_colors/font_shadow_color = Color(1, 1, 0, 1)
|
|
theme_override_colors/font_outline_color = Color(1, 0, 1, 1)
|
|
theme_override_font_sizes/font_size = 100
|
|
text = "Game Over"
|
|
|
|
[connection signal="health_depleted" from="player" to="." method="_on_player_health_depleted"]
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|