game_over.tscn 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. [gd_scene load_steps=19 format=3 uid="uid://8exnor7d4r2k"]
  2. [ext_resource type="Texture2D" uid="uid://cpefd3ejowpm1" path="res://assets/textures/game_over/failure_2.png" id="1_g6qpv"]
  3. [ext_resource type="Script" path="res://assets/scenes/game_over.gd" id="1_o647k"]
  4. [ext_resource type="Texture2D" uid="uid://dm5y2mjdav5m3" path="res://assets/textures/game_over/failure_1.png" id="2_icodc"]
  5. [ext_resource type="Texture2D" uid="uid://csyxhb3cip37v" path="res://assets/textures/game_over/failure_3.png" id="3_kkw3b"]
  6. [ext_resource type="Texture2D" uid="uid://c724uexjbodrv" path="res://assets/textures/game_over/failure_4.png" id="4_bii53"]
  7. [ext_resource type="Texture2D" uid="uid://48pprrrgfe7d" path="res://assets/textures/game_over/failure_5.png" id="5_cw6tv"]
  8. [ext_resource type="Texture2D" uid="uid://mlvqnk46xvvv" path="res://assets/textures/game_over/failure_6.png" id="6_bpy0b"]
  9. [ext_resource type="Texture2D" uid="uid://ckmqguoahfdxh" path="res://assets/textures/game_over/failure_7.png" id="7_mbl13"]
  10. [ext_resource type="Texture2D" uid="uid://ni6mhofo4bcb" path="res://assets/textures/game_over/failure_8.png" id="8_pnhfj"]
  11. [ext_resource type="Texture2D" uid="uid://buvi4nksxorx3" path="res://assets/textures/game_over/failure_9.png" id="9_3cacg"]
  12. [ext_resource type="Texture2D" uid="uid://dnwoqdwr8u5md" path="res://assets/textures/game_over/failure_10.png" id="10_0jp7g"]
  13. [ext_resource type="Texture2D" uid="uid://dk7spqxunogqr" path="res://assets/textures/game_over/failure_11.png" id="11_vpf65"]
  14. [ext_resource type="AudioStream" uid="uid://oud2xp50pbmx" path="res://assets/audio/Failure_V2.wav" id="13_upgmu"]
  15. [sub_resource type="Animation" id="Animation_bfgqb"]
  16. length = 0.001
  17. tracks/0/type = "value"
  18. tracks/0/imported = false
  19. tracks/0/enabled = true
  20. tracks/0/path = NodePath("Background:texture")
  21. tracks/0/interp = 1
  22. tracks/0/loop_wrap = true
  23. tracks/0/keys = {
  24. "times": PackedFloat32Array(0),
  25. "transitions": PackedFloat32Array(1),
  26. "update": 1,
  27. "values": [ExtResource("1_g6qpv")]
  28. }
  29. tracks/1/type = "value"
  30. tracks/1/imported = false
  31. tracks/1/enabled = true
  32. tracks/1/path = NodePath("CloseButton:visible")
  33. tracks/1/interp = 1
  34. tracks/1/loop_wrap = true
  35. tracks/1/keys = {
  36. "times": PackedFloat32Array(0),
  37. "transitions": PackedFloat32Array(1),
  38. "update": 1,
  39. "values": [true]
  40. }
  41. tracks/2/type = "value"
  42. tracks/2/imported = false
  43. tracks/2/enabled = true
  44. tracks/2/path = NodePath("MessageLabel:visible")
  45. tracks/2/interp = 1
  46. tracks/2/loop_wrap = true
  47. tracks/2/keys = {
  48. "times": PackedFloat32Array(0),
  49. "transitions": PackedFloat32Array(1),
  50. "update": 1,
  51. "values": [false]
  52. }
  53. [sub_resource type="Animation" id="Animation_yytoc"]
  54. resource_name = "close"
  55. length = 0.5
  56. tracks/0/type = "value"
  57. tracks/0/imported = false
  58. tracks/0/enabled = true
  59. tracks/0/path = NodePath("Background:texture")
  60. tracks/0/interp = 1
  61. tracks/0/loop_wrap = true
  62. tracks/0/keys = {
  63. "times": PackedFloat32Array(0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5),
  64. "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
  65. "update": 1,
  66. "values": [ExtResource("11_vpf65"), ExtResource("10_0jp7g"), ExtResource("9_3cacg"), ExtResource("8_pnhfj"), ExtResource("7_mbl13"), ExtResource("6_bpy0b"), ExtResource("5_cw6tv"), ExtResource("4_bii53"), ExtResource("3_kkw3b"), ExtResource("1_g6qpv"), ExtResource("2_icodc")]
  67. }
  68. tracks/1/type = "value"
  69. tracks/1/imported = false
  70. tracks/1/enabled = true
  71. tracks/1/path = NodePath("CloseButton:visible")
  72. tracks/1/interp = 1
  73. tracks/1/loop_wrap = true
  74. tracks/1/keys = {
  75. "times": PackedFloat32Array(0),
  76. "transitions": PackedFloat32Array(1),
  77. "update": 1,
  78. "values": [false]
  79. }
  80. tracks/2/type = "value"
  81. tracks/2/imported = false
  82. tracks/2/enabled = true
  83. tracks/2/path = NodePath("MessageLabel:visible")
  84. tracks/2/interp = 1
  85. tracks/2/loop_wrap = true
  86. tracks/2/keys = {
  87. "times": PackedFloat32Array(0),
  88. "transitions": PackedFloat32Array(1),
  89. "update": 1,
  90. "values": [false]
  91. }
  92. [sub_resource type="Animation" id="Animation_a40w7"]
  93. resource_name = "open"
  94. length = 0.5
  95. tracks/0/type = "value"
  96. tracks/0/imported = false
  97. tracks/0/enabled = true
  98. tracks/0/path = NodePath("Background:texture")
  99. tracks/0/interp = 1
  100. tracks/0/loop_wrap = true
  101. tracks/0/keys = {
  102. "times": PackedFloat32Array(0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5),
  103. "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
  104. "update": 1,
  105. "values": [ExtResource("2_icodc"), ExtResource("1_g6qpv"), ExtResource("3_kkw3b"), ExtResource("4_bii53"), ExtResource("5_cw6tv"), ExtResource("6_bpy0b"), ExtResource("7_mbl13"), ExtResource("8_pnhfj"), ExtResource("9_3cacg"), ExtResource("10_0jp7g"), ExtResource("11_vpf65")]
  106. }
  107. tracks/1/type = "value"
  108. tracks/1/imported = false
  109. tracks/1/enabled = true
  110. tracks/1/path = NodePath("CloseButton:visible")
  111. tracks/1/interp = 1
  112. tracks/1/loop_wrap = true
  113. tracks/1/keys = {
  114. "times": PackedFloat32Array(0, 0.5),
  115. "transitions": PackedFloat32Array(1, 1),
  116. "update": 1,
  117. "values": [false, true]
  118. }
  119. tracks/2/type = "value"
  120. tracks/2/imported = false
  121. tracks/2/enabled = true
  122. tracks/2/path = NodePath("MessageLabel:visible")
  123. tracks/2/interp = 1
  124. tracks/2/loop_wrap = true
  125. tracks/2/keys = {
  126. "times": PackedFloat32Array(0, 0.5),
  127. "transitions": PackedFloat32Array(1, 1),
  128. "update": 1,
  129. "values": [false, true]
  130. }
  131. [sub_resource type="AnimationLibrary" id="AnimationLibrary_fmmxf"]
  132. _data = {
  133. "RESET": SubResource("Animation_bfgqb"),
  134. "close": SubResource("Animation_yytoc"),
  135. "open": SubResource("Animation_a40w7")
  136. }
  137. [sub_resource type="LabelSettings" id="LabelSettings_d7ov6"]
  138. font_size = 22
  139. [node name="GameOver" type="Control"]
  140. process_mode = 3
  141. layout_mode = 3
  142. anchors_preset = 15
  143. anchor_right = 1.0
  144. anchor_bottom = 1.0
  145. grow_horizontal = 2
  146. grow_vertical = 2
  147. script = ExtResource("1_o647k")
  148. [node name="Background" type="TextureRect" parent="."]
  149. layout_mode = 1
  150. anchors_preset = 8
  151. anchor_left = 0.5
  152. anchor_top = 0.5
  153. anchor_right = 0.5
  154. anchor_bottom = 0.5
  155. offset_left = -20.0
  156. offset_top = -20.0
  157. offset_right = 20.0
  158. offset_bottom = 20.0
  159. grow_horizontal = 2
  160. grow_vertical = 2
  161. texture = ExtResource("1_g6qpv")
  162. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  163. libraries = {
  164. "": SubResource("AnimationLibrary_fmmxf")
  165. }
  166. [node name="CloseButton" type="Button" parent="."]
  167. layout_mode = 1
  168. anchors_preset = 8
  169. anchor_left = 0.5
  170. anchor_top = 0.5
  171. anchor_right = 0.5
  172. anchor_bottom = 0.5
  173. offset_left = -152.0
  174. offset_top = 135.0
  175. offset_right = 153.0
  176. offset_bottom = 188.0
  177. grow_horizontal = 2
  178. grow_vertical = 2
  179. theme_override_font_sizes/font_size = 32
  180. text = "CLOSE"
  181. [node name="MessageLabel" type="Label" parent="."]
  182. visible = false
  183. custom_minimum_size = Vector2(340, 180)
  184. layout_mode = 1
  185. anchors_preset = 8
  186. anchor_left = 0.5
  187. anchor_top = 0.5
  188. anchor_right = 0.5
  189. anchor_bottom = 0.5
  190. offset_left = -20.0
  191. offset_top = -11.5
  192. offset_right = 20.0
  193. offset_bottom = 11.5
  194. grow_horizontal = 2
  195. grow_vertical = 2
  196. text = "YOU DIED AFTER
  197. COMPLETING 9999 WAVES!"
  198. label_settings = SubResource("LabelSettings_d7ov6")
  199. horizontal_alignment = 1
  200. vertical_alignment = 1
  201. [node name="VoiceOver" type="AudioStreamPlayer" parent="."]
  202. stream = ExtResource("13_upgmu")
  203. autoplay = true
  204. [connection signal="pressed" from="CloseButton" to="." method="_on_close_button_pressed"]