game.tscn 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. [gd_scene load_steps=14 format=3 uid="uid://c483fkssc36s"]
  2. [ext_resource type="Script" path="res://screens/game.gd" id="1_4dd0q"]
  3. [ext_resource type="Texture2D" uid="uid://ceelbowk0q0rl" path="res://assets/textures/room/Light_Overlay.png" id="2_px5xi"]
  4. [ext_resource type="PackedScene" uid="uid://odwutyui6q5g" path="res://assets/scenes/health_bar.tscn" id="2_x77og"]
  5. [ext_resource type="PackedScene" uid="uid://c27ceu18q8eyr" path="res://assets/scenes/room.tscn" id="3_hm7l7"]
  6. [ext_resource type="PackedScene" uid="uid://ce8cu4romympf" path="res://assets/scenes/transition.tscn" id="4_yc6k4"]
  7. [ext_resource type="LabelSettings" uid="uid://dcy2uk6m62egc" path="res://screens/ui_label_settings.tres" id="5_wbjut"]
  8. [ext_resource type="PackedScene" uid="uid://cbmr1tbvbheda" path="res://assets/scenes/survivor_spot.tscn" id="6_c1csp"]
  9. [ext_resource type="PackedScene" uid="uid://bw0opjv1ewa8b" path="res://assets/scenes/player_spawn_zone.tscn" id="7_k4x0x"]
  10. [ext_resource type="AudioStream" uid="uid://evkshq2p1b3t" path="res://assets/audio/Begin_V2.wav" id="9_eq4qn"]
  11. [sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_yhw6y"]
  12. blend_mode = 1
  13. light_mode = 1
  14. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_lc6c4"]
  15. content_margin_left = 3.0
  16. content_margin_top = 3.0
  17. content_margin_right = 3.0
  18. content_margin_bottom = 3.0
  19. bg_color = Color(0.23697, 0.708244, 0.318218, 1)
  20. border_width_left = 1
  21. border_width_top = 1
  22. border_width_right = 1
  23. border_width_bottom = 1
  24. [sub_resource type="LabelSettings" id="LabelSettings_hn3kd"]
  25. font_size = 23
  26. outline_size = 3
  27. outline_color = Color(0, 0, 0, 1)
  28. [sub_resource type="RectangleShape2D" id="RectangleShape2D_p2163"]
  29. size = Vector2(472, 288)
  30. [node name="Game" type="Node2D"]
  31. script = ExtResource("1_4dd0q")
  32. [node name="Room" parent="." instance=ExtResource("3_hm7l7")]
  33. [node name="Light-Overlay" type="Sprite2D" parent="."]
  34. visible = false
  35. material = SubResource("CanvasItemMaterial_yhw6y")
  36. position = Vector2(640, 360)
  37. scale = Vector2(0.5, 0.5)
  38. texture = ExtResource("2_px5xi")
  39. [node name="HealthBar" parent="." instance=ExtResource("2_x77og")]
  40. position = Vector2(640, 73)
  41. [node name="Timer" type="Timer" parent="."]
  42. [node name="UI" type="CanvasLayer" parent="."]
  43. layer = 9
  44. [node name="Root" type="Control" parent="UI"]
  45. layout_mode = 3
  46. anchors_preset = 15
  47. anchor_right = 1.0
  48. anchor_bottom = 1.0
  49. grow_horizontal = 2
  50. grow_vertical = 2
  51. mouse_filter = 2
  52. [node name="WaveLabel" type="Label" parent="UI/Root"]
  53. layout_mode = 1
  54. anchors_preset = 2
  55. anchor_top = 1.0
  56. anchor_bottom = 1.0
  57. offset_left = 10.0
  58. offset_top = -52.0
  59. offset_right = 234.0
  60. offset_bottom = -6.0
  61. grow_vertical = 0
  62. text = "WAVE: 9999"
  63. label_settings = ExtResource("5_wbjut")
  64. vertical_alignment = 1
  65. [node name="PhaseLabel" type="Label" parent="UI/Root"]
  66. layout_mode = 1
  67. anchors_preset = 7
  68. anchor_left = 0.5
  69. anchor_top = 1.0
  70. anchor_right = 0.5
  71. anchor_bottom = 1.0
  72. offset_left = -123.5
  73. offset_top = -52.0
  74. offset_right = 123.5
  75. offset_bottom = -6.0
  76. grow_horizontal = 2
  77. grow_vertical = 0
  78. text = "PHASE: SETUP"
  79. label_settings = ExtResource("5_wbjut")
  80. horizontal_alignment = 1
  81. vertical_alignment = 1
  82. [node name="NextPhaseButton" type="Button" parent="UI/Root"]
  83. layout_mode = 1
  84. anchors_preset = 3
  85. anchor_left = 1.0
  86. anchor_top = 1.0
  87. anchor_right = 1.0
  88. anchor_bottom = 1.0
  89. offset_left = -218.0
  90. offset_top = -58.0
  91. offset_right = -10.0
  92. offset_bottom = -5.0
  93. grow_horizontal = 0
  94. grow_vertical = 0
  95. theme_override_font_sizes/font_size = 34
  96. theme_override_styles/normal = SubResource("StyleBoxFlat_lc6c4")
  97. theme_override_styles/hover = SubResource("StyleBoxFlat_lc6c4")
  98. theme_override_styles/focus = SubResource("StyleBoxFlat_lc6c4")
  99. text = "NEXT PHASE"
  100. [node name="LeftEnemyLabel" type="Label" parent="UI/Root"]
  101. layout_mode = 1
  102. anchors_preset = 4
  103. anchor_top = 0.5
  104. anchor_bottom = 0.5
  105. offset_left = 24.0
  106. offset_top = 50.0
  107. offset_right = 70.0
  108. offset_bottom = 78.0
  109. grow_vertical = 2
  110. text = "9999"
  111. label_settings = SubResource("LabelSettings_hn3kd")
  112. horizontal_alignment = 1
  113. [node name="RightEnemyLabel" type="Label" parent="UI/Root"]
  114. layout_mode = 1
  115. anchors_preset = 4
  116. anchor_top = 0.5
  117. anchor_bottom = 0.5
  118. offset_left = 1206.0
  119. offset_top = 48.0
  120. offset_right = 1258.0
  121. offset_bottom = 80.0
  122. grow_vertical = 2
  123. text = "9999"
  124. label_settings = SubResource("LabelSettings_hn3kd")
  125. horizontal_alignment = 1
  126. [node name="TopEnemyLabel" type="Label" parent="UI/Root"]
  127. layout_mode = 1
  128. anchors_preset = 5
  129. anchor_left = 0.5
  130. anchor_right = 0.5
  131. offset_left = -26.0
  132. offset_top = 190.0
  133. offset_right = 26.0
  134. offset_bottom = 222.0
  135. grow_horizontal = 2
  136. text = "9999"
  137. label_settings = SubResource("LabelSettings_hn3kd")
  138. horizontal_alignment = 1
  139. [node name="Overlay" type="CanvasLayer" parent="."]
  140. layer = 10
  141. visible = false
  142. [node name="Transition" parent="Overlay" instance=ExtResource("4_yc6k4")]
  143. [node name="Base" type="Area2D" parent="." groups=["base"]]
  144. collision_mask = 12
  145. [node name="CollisionShape2D" type="CollisionShape2D" parent="Base"]
  146. position = Vector2(639, 509)
  147. shape = SubResource("RectangleShape2D_p2163")
  148. [node name="PlayerSpawnZone" parent="." instance=ExtResource("7_k4x0x")]
  149. position = Vector2(635, 572)
  150. [node name="EnemySpawns" type="Node2D" parent="."]
  151. [node name="EnemySpawn_Left" type="Marker2D" parent="EnemySpawns" groups=["spawner"]]
  152. position = Vector2(48, 426)
  153. [node name="EnemySpawn_Right" type="Marker2D" parent="EnemySpawns" groups=["spawner"]]
  154. position = Vector2(1234, 424)
  155. [node name="EnemySpawn_Top" type="Marker2D" parent="EnemySpawns" groups=["spawner"]]
  156. position = Vector2(641, 207)
  157. [node name="SurvivorSpots" type="Node2D" parent="."]
  158. [node name="SurvivorSpot" parent="SurvivorSpots" instance=ExtResource("6_c1csp")]
  159. position = Vector2(497, 451)
  160. rotation = -1.5708
  161. [node name="SurvivorSpot7" parent="SurvivorSpots" instance=ExtResource("6_c1csp")]
  162. position = Vector2(575, 451)
  163. [node name="SurvivorSpot8" parent="SurvivorSpots" instance=ExtResource("6_c1csp")]
  164. position = Vector2(637, 451)
  165. [node name="SurvivorSpot9" parent="SurvivorSpots" instance=ExtResource("6_c1csp")]
  166. position = Vector2(701, 451)
  167. [node name="SurvivorSpot2" parent="SurvivorSpots" instance=ExtResource("6_c1csp")]
  168. position = Vector2(497, 511)
  169. rotation = -1.5708
  170. [node name="SurvivorSpot3" parent="SurvivorSpots" instance=ExtResource("6_c1csp")]
  171. position = Vector2(497, 570)
  172. rotation = -1.5708
  173. [node name="SurvivorSpot4" parent="SurvivorSpots" instance=ExtResource("6_c1csp")]
  174. position = Vector2(778, 451)
  175. rotation = 1.5708
  176. [node name="SurvivorSpot5" parent="SurvivorSpots" instance=ExtResource("6_c1csp")]
  177. position = Vector2(778, 511)
  178. rotation = 1.5708
  179. [node name="SurvivorSpot6" parent="SurvivorSpots" instance=ExtResource("6_c1csp")]
  180. position = Vector2(778, 570)
  181. rotation = 1.5708
  182. [node name="Sounds" type="Node" parent="."]
  183. [node name="CombatStartSound" type="AudioStreamPlayer" parent="Sounds"]
  184. stream = ExtResource("9_eq4qn")
  185. [connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
  186. [connection signal="pressed" from="UI/Root/NextPhaseButton" to="." method="_on_next_phase_button_pressed"]
  187. [connection signal="area_entered" from="Base" to="." method="_on_base_area_entered"]