world.tscn 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. [gd_scene load_steps=6 format=4 uid="uid://by3f5o7dyoqx4"]
  2. [ext_resource type="TileSet" uid="uid://do2l6lpuotti8" path="res://tileset.tres" id="1"]
  3. [ext_resource type="PackedScene" uid="uid://bao3yernlglws" path="res://rock.tscn" id="2"]
  4. [ext_resource type="Script" path="res://score.gd" id="3"]
  5. [ext_resource type="FontFile" uid="uid://knb8u535cfkw" path="res://montserrat.otf" id="4"]
  6. [ext_resource type="Script" path="res://bomb_spawner.gd" id="6_ac5ja"]
  7. [node name="World" type="Node2D"]
  8. [node name="Layer0" type="TileMapLayer" parent="."]
  9. use_parent_material = true
  10. tile_map_data = PackedByteArray("AAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAkAAAAAAAAAAAAAAAoAAAAAAAAAAAAAAAsAAAAAAAAAAAAAAAwAAAAAAAAAAAABAAAAAAAAAAAAAAABAAEAAAABAAAAAAABAAIAAAABAAAAAAABAAMAAAABAAAAAAABAAQAAAABAAAAAAABAAUAAAABAAAAAAABAAYAAAABAAAAAAABAAcAAAABAAAAAAABAAgAAAABAAAAAAABAAkAAAABAAAAAAABAAoAAAABAAAAAAABAAsAAAABAAAAAAABAAwAAAAAAAAAAAACA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AAAAAARAAkAAAABAAAAAAARAAoAAAABAAAAAAARAAsAAAABAAAAAAARAAwAAAAAAAAAAAASAAAAAAAAAAAAAAASAAEAAAABAAAAAAASAAIAAAAAAAAAAAASAAMAAAABAAAAAAASAAQAAAAAAAAAAAASAAUAAAAAAAAAAAASAAYAAAAAAAAAAAASAAcAAAABAAAAAAASAAgAAAAAAAAAAAASAAkAAAABAAAAAAASAAoAAAAAAAAAAAASAAsAAAABAAAAAAASAAwAAAAAAAAAAAATAAAAAAAAAAAAAAATAAEAAAABAAAAAAATAAIAAAABAAAAAAATAAMAAAABAAAAAAATAAQAAAABAAAAAAATAAUAAAABAAAAAAATAAYAAAABAAAAAAATAAcAAAABAAAAAAATAAgAAAABAAAAAAATAAkAAAABAAAAAAATAAoAAAABAAAAAAATAAsAAAABAAAAAAATAAwAAAAAAAAAAAAUAAAAAAAAAAAAAAAUAAEAAAAAAAAAAAAUAAIAAAAAAAAAAAAUAAMAAAAAAAAAAAAUAAQAAAAAAAAAAAAUAAUAAAAAAAAAAAAUAAYAAAAAAAAAAAAUAAcAAAAAAAAAAAAUAAgAAAAAAAAAAAAUAAkAAAAAAAAAAAAUAAoAAAAAAAAAAAAUAAsAAAAAAAAAAAAUAAwAAAAAAAAAAAAVAAAAAAAAAAAAAAAVAAEAAAAAAAAAAAAVAAIAAAAAAAAAAAAVAAMAAAAAAAAAAAAVAAQAAAAAAAAAAAAVAAUAAAAAAAAAAAAVAAYAAAAAAAAAAAAVAAcAAAAAAAAAAAAVAAgAAAAAAAAAAAAVAAkAAAAAAAAAAAAVAAoAAAAAAAAAAAAVAAsAAAAAAAAAAAAVAAwAAAAAAAAAAAA=")
  11. tile_set = ExtResource("1")
  12. rendering_quadrant_size = 48
  13. [node name="SpawnPoints" type="Node2D" parent="."]
  14. [node name="0" type="Marker2D" parent="SpawnPoints"]
  15. position = Vector2(72, 72)
  16. [node name="1" type="Marker2D" parent="SpawnPoints"]
  17. position = Vector2(264, 216)
  18. [node name="2" type="Marker2D" parent="SpawnPoints"]
  19. position = Vector2(72, 456)
  20. [node name="3" type="Marker2D" parent="SpawnPoints"]
  21. position = Vector2(360, 552)
  22. [node name="4" type="Marker2D" parent="SpawnPoints"]
  23. position = Vector2(840, 360)
  24. [node name="5" type="Marker2D" parent="SpawnPoints"]
  25. position = Vector2(456, 264)
  26. [node name="6" type="Marker2D" parent="SpawnPoints"]
  27. position = Vector2(696, 264)
  28. [node name="7" type="Marker2D" parent="SpawnPoints"]
  29. position = Vector2(744, 456)
  30. [node name="8" type="Marker2D" parent="SpawnPoints"]
  31. position = Vector2(312, 456)
  32. [node name="9" type="Marker2D" parent="SpawnPoints"]
  33. position = Vector2(696, 72)
  34. [node name="10" type="Marker2D" parent="SpawnPoints"]
  35. position = Vector2(504, 72)
  36. [node name="11" type="Marker2D" parent="SpawnPoints"]
  37. position = Vector2(936, 72)
  38. [node name="Rocks" type="Node2D" parent="."]
  39. [node name="Rock0" parent="Rocks" instance=ExtResource("2")]
  40. position = Vector2(120, 72)
  41. [node name="Rock1" parent="Rocks" instance=ExtResource("2")]
  42. position = Vector2(264, 168)
  43. [node name="Rock2" parent="Rocks" instance=ExtResource("2")]
  44. position = Vector2(264, 120)
  45. [node name="Rock3" parent="Rocks" instance=ExtResource("2")]
  46. position = Vector2(216, 72)
  47. [node name="Rock4" parent="Rocks" instance=ExtResource("2")]
  48. position = Vector2(264, 72)
  49. [node name="Rock5" parent="Rocks" instance=ExtResource("2")]
  50. position = Vector2(312, 72)
  51. [node name="Rock6" parent="Rocks" instance=ExtResource("2")]
  52. position = Vector2(552, 168)
  53. [node name="Rock7" parent="Rocks" instance=ExtResource("2")]
  54. position = Vector2(600, 168)
  55. [node name="Rock8" parent="Rocks" instance=ExtResource("2")]
  56. position = Vector2(552, 216)
  57. [node name="Rock9" parent="Rocks" instance=ExtResource("2")]
  58. position = Vector2(264, 312)
  59. [node name="Rock10" parent="Rocks" instance=ExtResource("2")]
  60. position = Vector2(120, 360)
  61. [node name="Rock11" parent="Rocks" instance=ExtResource("2")]
  62. position = Vector2(168, 360)
  63. [node name="Rock12" parent="Rocks" instance=ExtResource("2")]
  64. position = Vector2(216, 360)
  65. [node name="Rock13" parent="Rocks" instance=ExtResource("2")]
  66. position = Vector2(120, 264)
  67. [node name="Rock14" parent="Rocks" instance=ExtResource("2")]
  68. position = Vector2(168, 216)
  69. [node name="Rock15" parent="Rocks" instance=ExtResource("2")]
  70. position = Vector2(72, 360)
  71. [node name="Rock16" parent="Rocks" instance=ExtResource("2")]
  72. position = Vector2(72, 312)
  73. [node name="Rock17" parent="Rocks" instance=ExtResource("2")]
  74. position = Vector2(72, 264)
  75. [node name="Rock18" parent="Rocks" instance=ExtResource("2")]
  76. position = Vector2(360, 360)
  77. [node name="Rock19" parent="Rocks" instance=ExtResource("2")]
  78. position = Vector2(408, 360)
  79. [node name="Rock20" parent="Rocks" instance=ExtResource("2")]
  80. position = Vector2(504, 360)
  81. [node name="Rock21" parent="Rocks" instance=ExtResource("2")]
  82. position = Vector2(600, 360)
  83. [node name="Rock22" parent="Rocks" instance=ExtResource("2")]
  84. position = Vector2(648, 360)
  85. [node name="Rock23" parent="Rocks" instance=ExtResource("2")]
  86. position = Vector2(504, 456)
  87. [node name="Rock24" parent="Rocks" instance=ExtResource("2")]
  88. position = Vector2(552, 456)
  89. [node name="Rock25" parent="Rocks" instance=ExtResource("2")]
  90. position = Vector2(552, 408)
  91. [node name="Rock26" parent="Rocks" instance=ExtResource("2")]
  92. position = Vector2(360, 456)
  93. [node name="Rock27" parent="Rocks" instance=ExtResource("2")]
  94. position = Vector2(360, 504)
  95. [node name="Rock28" parent="Rocks" instance=ExtResource("2")]
  96. position = Vector2(264, 504)
  97. [node name="Rock29" parent="Rocks" instance=ExtResource("2")]
  98. position = Vector2(264, 552)
  99. [node name="Rock30" parent="Rocks" instance=ExtResource("2")]
  100. position = Vector2(168, 456)
  101. [node name="Rock31" parent="Rocks" instance=ExtResource("2")]
  102. position = Vector2(168, 504)
  103. [node name="Rock32" parent="Rocks" instance=ExtResource("2")]
  104. position = Vector2(72, 552)
  105. [node name="Rock33" parent="Rocks" instance=ExtResource("2")]
  106. position = Vector2(120, 552)
  107. [node name="Rock34" parent="Rocks" instance=ExtResource("2")]
  108. position = Vector2(504, 552)
  109. [node name="Rock35" parent="Rocks" instance=ExtResource("2")]
  110. position = Vector2(600, 552)
  111. [node name="Rock36" parent="Rocks" instance=ExtResource("2")]
  112. position = Vector2(648, 552)
  113. [node name="Rock37" parent="Rocks" instance=ExtResource("2")]
  114. position = Vector2(648, 504)
  115. [node name="Rock38" parent="Rocks" instance=ExtResource("2")]
  116. position = Vector2(456, 216)
  117. [node name="Rock39" parent="Rocks" instance=ExtResource("2")]
  118. position = Vector2(360, 216)
  119. [node name="Rock40" parent="Rocks" instance=ExtResource("2")]
  120. position = Vector2(360, 168)
  121. [node name="Rock41" parent="Rocks" instance=ExtResource("2")]
  122. position = Vector2(456, 120)
  123. [node name="Rock42" parent="Rocks" instance=ExtResource("2")]
  124. position = Vector2(456, 408)
  125. [node name="Rock43" parent="Rocks" instance=ExtResource("2")]
  126. position = Vector2(456, 456)
  127. [node name="Rock44" parent="Rocks" instance=ExtResource("2")]
  128. position = Vector2(456, 504)
  129. [node name="Rock45" parent="Rocks" instance=ExtResource("2")]
  130. position = Vector2(600, 264)
  131. [node name="Rock46" parent="Rocks" instance=ExtResource("2")]
  132. position = Vector2(600, 72)
  133. [node name="Rock47" parent="Rocks" instance=ExtResource("2")]
  134. position = Vector2(408, 72)
  135. [node name="Rock48" parent="Rocks" instance=ExtResource("2")]
  136. position = Vector2(792, 168)
  137. [node name="Rock49" parent="Rocks" instance=ExtResource("2")]
  138. position = Vector2(744, 168)
  139. [node name="Rock50" parent="Rocks" instance=ExtResource("2")]
  140. position = Vector2(744, 264)
  141. [node name="Rock51" parent="Rocks" instance=ExtResource("2")]
  142. position = Vector2(792, 264)
  143. [node name="Rock52" parent="Rocks" instance=ExtResource("2")]
  144. position = Vector2(744, 360)
  145. [node name="Rock53" parent="Rocks" instance=ExtResource("2")]
  146. position = Vector2(744, 408)
  147. [node name="Rock54" parent="Rocks" instance=ExtResource("2")]
  148. position = Vector2(792, 552)
  149. [node name="Rock55" parent="Rocks" instance=ExtResource("2")]
  150. position = Vector2(840, 552)
  151. [node name="Rock56" parent="Rocks" instance=ExtResource("2")]
  152. position = Vector2(840, 504)
  153. [node name="Rock57" parent="Rocks" instance=ExtResource("2")]
  154. position = Vector2(840, 312)
  155. [node name="Rock58" parent="Rocks" instance=ExtResource("2")]
  156. position = Vector2(840, 264)
  157. [node name="Rock59" parent="Rocks" instance=ExtResource("2")]
  158. position = Vector2(840, 216)
  159. [node name="Rock60" parent="Rocks" instance=ExtResource("2")]
  160. position = Vector2(840, 120)
  161. [node name="Rock61" parent="Rocks" instance=ExtResource("2")]
  162. position = Vector2(792, 72)
  163. [node name="Rock62" parent="Rocks" instance=ExtResource("2")]
  164. position = Vector2(840, 72)
  165. [node name="Rock63" parent="Rocks" instance=ExtResource("2")]
  166. position = Vector2(936, 216)
  167. [node name="Rock64" parent="Rocks" instance=ExtResource("2")]
  168. position = Vector2(936, 264)
  169. [node name="Rock65" parent="Rocks" instance=ExtResource("2")]
  170. position = Vector2(936, 408)
  171. [node name="Rock66" parent="Rocks" instance=ExtResource("2")]
  172. position = Vector2(888, 456)
  173. [node name="Rock67" parent="Rocks" instance=ExtResource("2")]
  174. position = Vector2(936, 456)
  175. [node name="Rock68" parent="Rocks" instance=ExtResource("2")]
  176. position = Vector2(792, 456)
  177. [node name="Rock69" parent="Rocks" instance=ExtResource("2")]
  178. position = Vector2(840, 456)
  179. [node name="Players" type="Node2D" parent="."]
  180. [node name="ColorRect" type="ColorRect" parent="."]
  181. offset_right = 1056.0
  182. offset_bottom = 48.0
  183. color = Color(0, 0, 0, 0.501961)
  184. [node name="Score" type="HBoxContainer" parent="."]
  185. offset_right = 1024.0
  186. offset_bottom = 40.0
  187. size_flags_horizontal = 2
  188. size_flags_vertical = 2
  189. script = ExtResource("3")
  190. [node name="Winner" type="Label" parent="."]
  191. visible = false
  192. offset_right = 1031.0
  193. offset_bottom = 617.0
  194. size_flags_horizontal = 2
  195. size_flags_vertical = 0
  196. theme_override_constants/shadow_offset_x = 2
  197. theme_override_constants/shadow_offset_y = 2
  198. theme_override_fonts/font = ExtResource("4")
  199. text = "THE WINNER IS:
  200. YOU"
  201. [node name="ExitGame" type="Button" parent="Winner"]
  202. layout_mode = 0
  203. offset_left = 384.0
  204. offset_top = 408.0
  205. offset_right = 649.0
  206. offset_bottom = 469.0
  207. size_flags_horizontal = 2
  208. size_flags_vertical = 2
  209. theme_override_fonts/font = ExtResource("4")
  210. text = "EXIT GAME"
  211. [node name="Camera2D" type="Camera2D" parent="."]
  212. offset = Vector2(512, 300)
  213. [node name="PlayerSpawner" type="MultiplayerSpawner" parent="."]
  214. _spawnable_scenes = PackedStringArray("res://player.tscn")
  215. spawn_path = NodePath("../Players")
  216. [node name="BombSpawner" type="MultiplayerSpawner" parent="."]
  217. spawn_path = NodePath("..")
  218. script = ExtResource("6_ac5ja")
  219. [connection signal="pressed" from="Winner/ExitGame" to="Score" method="_on_exit_game_pressed"]