65 lines
2.6 KiB
Plaintext
65 lines
2.6 KiB
Plaintext
|
[gd_scene load_steps=9 format=3 uid="uid://lnu6rbfrobcj"]
|
||
|
|
||
|
[ext_resource type="Script" path="res://scenes/main.gd" id="1_5ln4w"]
|
||
|
[ext_resource type="PackedScene" uid="uid://b67uwwuoqaj8k" path="res://scenes/player/player.tscn" id="2_4emuo"]
|
||
|
[ext_resource type="PackedScene" uid="uid://dft0l6kiatv8r" path="res://scenes/mob/mob.tscn" id="3_cb8gr"]
|
||
|
[ext_resource type="PackedScene" uid="uid://d22yt81uknksv" path="res://scenes/HUD/hud.tscn" id="4_7sfdk"]
|
||
|
[ext_resource type="AudioStream" uid="uid://dn8pr56ynvupw" path="res://art/House In a Forest Loop.ogg" id="5_uatno"]
|
||
|
[ext_resource type="AudioStream" uid="uid://ceqgou1w6cvld" path="res://art/gameover.wav" id="6_4k0ar"]
|
||
|
[ext_resource type="PackedScene" uid="uid://dllre5tl0hejs" path="res://scenes/particle/wind_trail.tscn" id="7_3ydc3"]
|
||
|
|
||
|
[sub_resource type="Curve2D" id="Curve2D_tqiio"]
|
||
|
_data = {
|
||
|
"points": PackedVector2Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 480, 0, 0, 0, 0, 0, 480, 720, 0, 0, 0, 0, 0, 720, 0, 0, 0, 0, 0, 0)
|
||
|
}
|
||
|
point_count = 5
|
||
|
|
||
|
[node name="Node2D" type="Node2D"]
|
||
|
script = ExtResource("1_5ln4w")
|
||
|
mob_scene = ExtResource("3_cb8gr")
|
||
|
|
||
|
[node name="ColorRect" type="ColorRect" parent="."]
|
||
|
z_index = -2
|
||
|
offset_right = 480.0
|
||
|
offset_bottom = 720.0
|
||
|
color = Color(0.524642, 0.597468, 0.684174, 1)
|
||
|
|
||
|
[node name="Player" parent="." instance=ExtResource("2_4emuo")]
|
||
|
|
||
|
[node name="PlayerStartPosition" type="Marker2D" parent="."]
|
||
|
position = Vector2(240, 450)
|
||
|
|
||
|
[node name="MobSpawnTimer" type="Timer" parent="."]
|
||
|
wait_time = 0.5
|
||
|
|
||
|
[node name="ScoreIncrementTimer" type="Timer" parent="."]
|
||
|
|
||
|
[node name="GameStartTimer" type="Timer" parent="."]
|
||
|
wait_time = 2.0
|
||
|
one_shot = true
|
||
|
|
||
|
[node name="Path2D" type="Path2D" parent="."]
|
||
|
curve = SubResource("Curve2D_tqiio")
|
||
|
|
||
|
[node name="MobSpawnLocation" type="PathFollow2D" parent="Path2D"]
|
||
|
|
||
|
[node name="HUD" parent="." instance=ExtResource("4_7sfdk")]
|
||
|
|
||
|
[node name="Music" type="AudioStreamPlayer2D" parent="."]
|
||
|
stream = ExtResource("5_uatno")
|
||
|
volume_db = -5.622
|
||
|
parameters/looping = true
|
||
|
|
||
|
[node name="DeathSound" type="AudioStreamPlayer2D" parent="."]
|
||
|
stream = ExtResource("6_4k0ar")
|
||
|
|
||
|
[node name="WindTrail" parent="." instance=ExtResource("7_3ydc3")]
|
||
|
position = Vector2(-503, 360)
|
||
|
visibility_rect = Rect2(-1000, -1000, 2000, 2000)
|
||
|
|
||
|
[connection signal="hit" from="Player" to="." method="_on_player_hit"]
|
||
|
[connection signal="timeout" from="MobSpawnTimer" to="." method="_on_mob_spawn_timer_timeout"]
|
||
|
[connection signal="timeout" from="ScoreIncrementTimer" to="." method="_on_score_increment_timer_timeout"]
|
||
|
[connection signal="timeout" from="GameStartTimer" to="." method="_on_game_start_timer_timeout"]
|
||
|
[connection signal="start_game" from="HUD" to="." method="_on_hud_start_game"]
|