main.tscn 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. [gd_scene load_steps=8 format=3 uid="uid://cyfwty2q3rdse"]
  2. [ext_resource type="Script" path="res://main.gd" id="1_0r6n5"]
  3. [ext_resource type="PackedScene" uid="uid://rkdnhqgf2hpj" path="res://mob.tscn" id="2_50pww"]
  4. [ext_resource type="PackedScene" uid="uid://4vwrqjegqwpj" path="res://player.tscn" id="3_veqnc"]
  5. [ext_resource type="PackedScene" uid="uid://ccqoreueuxdb7" path="res://hud.tscn" id="4_0qnje"]
  6. [ext_resource type="AudioStream" uid="uid://q2pf4fr8d0ks" path="res://art/House In a Forest Loop.ogg" id="5_55d8h"]
  7. [ext_resource type="AudioStream" uid="uid://dw26fpygeag8o" path="res://art/gameover.wav" id="6_hp1r0"]
  8. [sub_resource type="Curve2D" id="1"]
  9. _data = {
  10. "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)
  11. }
  12. point_count = 5
  13. [node name="Main" type="Node"]
  14. script = ExtResource("1_0r6n5")
  15. mob_scene = ExtResource("2_50pww")
  16. [node name="ColorRect" type="ColorRect" parent="."]
  17. anchors_preset = 15
  18. anchor_right = 1.0
  19. anchor_bottom = 1.0
  20. grow_horizontal = 2
  21. grow_vertical = 2
  22. color = Color(0.219608, 0.372549, 0.380392, 1)
  23. [node name="Player" parent="." instance=ExtResource("3_veqnc")]
  24. [node name="MobTimer" type="Timer" parent="."]
  25. wait_time = 0.5
  26. [node name="ScoreTimer" type="Timer" parent="."]
  27. [node name="StartTimer" type="Timer" parent="."]
  28. wait_time = 2.0
  29. one_shot = true
  30. [node name="StartPosition" type="Marker2D" parent="."]
  31. position = Vector2(240, 450)
  32. [node name="MobPath" type="Path2D" parent="."]
  33. curve = SubResource("1")
  34. [node name="MobSpawnLocation" type="PathFollow2D" parent="MobPath"]
  35. [node name="HUD" parent="." instance=ExtResource("4_0qnje")]
  36. [node name="Music" type="AudioStreamPlayer" parent="."]
  37. stream = ExtResource("5_55d8h")
  38. [node name="DeathSound" type="AudioStreamPlayer" parent="."]
  39. stream = ExtResource("6_hp1r0")
  40. [connection signal="hit" from="Player" to="." method="game_over"]
  41. [connection signal="timeout" from="MobTimer" to="." method="_on_MobTimer_timeout"]
  42. [connection signal="timeout" from="ScoreTimer" to="." method="_on_ScoreTimer_timeout"]
  43. [connection signal="timeout" from="StartTimer" to="." method="_on_StartTimer_timeout"]
  44. [connection signal="start_game" from="HUD" to="." method="new_game"]