A game created for the Godot Wild Jam #21
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

334 lines
9.5KB

  1. [gd_scene load_steps=13 format=2]
  2. [ext_resource path="res://Data/Graphics/UI/BTN_Pressed.png" type="Texture" id=1]
  3. [ext_resource path="res://Data/Objects/Player.tscn" type="PackedScene" id=2]
  4. [ext_resource path="res://Data/Graphics/UI/MenuBody.png" type="Texture" id=3]
  5. [ext_resource path="res://Data/Graphics/UI/BTN_Idle.png" type="Texture" id=4]
  6. [ext_resource path="res://Data/Graphics/UI/Progress_Back.png" type="Texture" id=8]
  7. [ext_resource path="res://Data/Graphics/UI/Progress_Bar.png" type="Texture" id=9]
  8. [ext_resource path="res://Data/Scripts/UI/GUI.gd" type="Script" id=10]
  9. [ext_resource path="res://Data/Graphics/UI/Progress_Bar_H.png" type="Texture" id=11]
  10. [ext_resource path="res://Data/Graphics/UI/Progress_Back_H.png" type="Texture" id=12]
  11. [ext_resource path="res://Data/Fonts/Killer_Robot_20.tres" type="DynamicFont" id=13]
  12. [ext_resource path="res://Data/Fonts/Hydrogen_64.tres" type="DynamicFont" id=14]
  13. [ext_resource path="res://Data/Scripts/World.gd" type="Script" id=15]
  14. [node name="World" type="Node2D"]
  15. script = ExtResource( 15 )
  16. [node name="Music" type="AudioStreamPlayer" parent="."]
  17. bus = "Music"
  18. [node name="lvl" type="Node2D" parent="."]
  19. [node name="Player" parent="." instance=ExtResource( 2 )]
  20. visible = false
  21. [node name="ExitTween" type="Tween" parent="."]
  22. [node name="GUI" type="CanvasLayer" parent="."]
  23. pause_mode = 2
  24. script = ExtResource( 10 )
  25. [node name="PlayerUI" type="HBoxContainer" parent="GUI"]
  26. margin_left = 10.0
  27. margin_top = 10.0
  28. margin_right = 40.0
  29. margin_bottom = 40.0
  30. custom_constants/separation = 14
  31. __meta__ = {
  32. "_edit_use_anchors_": false
  33. }
  34. [node name="NRG" type="VBoxContainer" parent="GUI/PlayerUI"]
  35. margin_right = 41.0
  36. margin_bottom = 164.0
  37. [node name="Label" type="Label" parent="GUI/PlayerUI/NRG"]
  38. margin_right = 41.0
  39. margin_bottom = 24.0
  40. custom_fonts/font = ExtResource( 13 )
  41. text = "NRG"
  42. [node name="Bar" type="TextureRect" parent="GUI/PlayerUI/NRG"]
  43. margin_top = 28.0
  44. margin_right = 41.0
  45. margin_bottom = 146.0
  46. texture = ExtResource( 12 )
  47. stretch_mode = 4
  48. [node name="Progress" type="TextureProgress" parent="GUI/PlayerUI/NRG/Bar"]
  49. anchor_left = 0.5
  50. anchor_top = 0.5
  51. anchor_right = 0.5
  52. anchor_bottom = 0.5
  53. margin_left = -12.0
  54. margin_top = -59.0
  55. margin_right = 12.0
  56. margin_bottom = 59.0
  57. value = 70.0
  58. texture_progress = ExtResource( 11 )
  59. fill_mode = 3
  60. __meta__ = {
  61. "_edit_use_anchors_": false
  62. }
  63. [node name="Tween" type="Tween" parent="GUI/PlayerUI/NRG/Bar/Progress"]
  64. [node name="MoodBars" type="VBoxContainer" parent="GUI/PlayerUI"]
  65. margin_left = 55.0
  66. margin_right = 311.0
  67. margin_bottom = 164.0
  68. __meta__ = {
  69. "_edit_use_anchors_": false
  70. }
  71. [node name="Aggression" type="VBoxContainer" parent="GUI/PlayerUI/MoodBars"]
  72. margin_right = 256.0
  73. margin_bottom = 52.0
  74. [node name="Label" type="Label" parent="GUI/PlayerUI/MoodBars/Aggression"]
  75. margin_right = 256.0
  76. margin_bottom = 24.0
  77. custom_fonts/font = ExtResource( 13 )
  78. text = "Aggression"
  79. [node name="Bar" type="TextureRect" parent="GUI/PlayerUI/MoodBars/Aggression"]
  80. margin_top = 28.0
  81. margin_right = 256.0
  82. margin_bottom = 52.0
  83. rect_min_size = Vector2( 256, 24 )
  84. texture = ExtResource( 8 )
  85. [node name="Progress" type="TextureProgress" parent="GUI/PlayerUI/MoodBars/Aggression/Bar"]
  86. modulate = Color( 1, 0, 0, 1 )
  87. margin_right = 256.0
  88. margin_bottom = 24.0
  89. rect_min_size = Vector2( 256, 24 )
  90. value = 70.0
  91. texture_progress = ExtResource( 9 )
  92. __meta__ = {
  93. "_edit_use_anchors_": false
  94. }
  95. [node name="Tween" type="Tween" parent="GUI/PlayerUI/MoodBars/Aggression/Bar/Progress"]
  96. [node name="Neediness" type="VBoxContainer" parent="GUI/PlayerUI/MoodBars"]
  97. margin_top = 56.0
  98. margin_right = 256.0
  99. margin_bottom = 108.0
  100. [node name="Label" type="Label" parent="GUI/PlayerUI/MoodBars/Neediness"]
  101. margin_right = 256.0
  102. margin_bottom = 24.0
  103. custom_fonts/font = ExtResource( 13 )
  104. text = "Neediness"
  105. [node name="Bar" type="TextureRect" parent="GUI/PlayerUI/MoodBars/Neediness"]
  106. margin_top = 28.0
  107. margin_right = 256.0
  108. margin_bottom = 52.0
  109. rect_min_size = Vector2( 256, 24 )
  110. texture = ExtResource( 8 )
  111. [node name="Progress" type="TextureProgress" parent="GUI/PlayerUI/MoodBars/Neediness/Bar"]
  112. modulate = Color( 0.0784314, 1, 0, 1 )
  113. margin_right = 256.0
  114. margin_bottom = 24.0
  115. rect_min_size = Vector2( 256, 24 )
  116. value = 70.0
  117. texture_progress = ExtResource( 9 )
  118. __meta__ = {
  119. "_edit_use_anchors_": false
  120. }
  121. [node name="Tween" type="Tween" parent="GUI/PlayerUI/MoodBars/Neediness/Bar/Progress"]
  122. [node name="Contentment" type="VBoxContainer" parent="GUI/PlayerUI/MoodBars"]
  123. margin_top = 112.0
  124. margin_right = 256.0
  125. margin_bottom = 164.0
  126. [node name="Label" type="Label" parent="GUI/PlayerUI/MoodBars/Contentment"]
  127. margin_right = 256.0
  128. margin_bottom = 24.0
  129. custom_fonts/font = ExtResource( 13 )
  130. text = "Contentment"
  131. [node name="Bar" type="TextureRect" parent="GUI/PlayerUI/MoodBars/Contentment"]
  132. margin_top = 28.0
  133. margin_right = 256.0
  134. margin_bottom = 52.0
  135. rect_min_size = Vector2( 256, 24 )
  136. texture = ExtResource( 8 )
  137. [node name="Progress" type="TextureProgress" parent="GUI/PlayerUI/MoodBars/Contentment/Bar"]
  138. modulate = Color( 0, 0.0627451, 1, 1 )
  139. margin_right = 256.0
  140. margin_bottom = 24.0
  141. rect_min_size = Vector2( 256, 24 )
  142. value = 70.0
  143. texture_progress = ExtResource( 9 )
  144. __meta__ = {
  145. "_edit_use_anchors_": false
  146. }
  147. [node name="Tween" type="Tween" parent="GUI/PlayerUI/MoodBars/Contentment/Bar/Progress"]
  148. [node name="Timer" type="VBoxContainer" parent="GUI"]
  149. anchor_left = 1.0
  150. anchor_right = 1.0
  151. margin_left = -362.0
  152. margin_right = -10.0
  153. margin_bottom = 93.0
  154. __meta__ = {
  155. "_edit_use_anchors_": false
  156. }
  157. [node name="Label" type="Label" parent="GUI/Timer"]
  158. margin_right = 362.0
  159. margin_bottom = 24.0
  160. custom_fonts/font = ExtResource( 13 )
  161. custom_colors/font_color = Color( 0.886275, 1, 0.827451, 1 )
  162. text = "Time Elapsed"
  163. align = 2
  164. valign = 1
  165. [node name="TimeText" type="Label" parent="GUI/Timer"]
  166. margin_top = 28.0
  167. margin_right = 362.0
  168. margin_bottom = 93.0
  169. custom_fonts/font = ExtResource( 14 )
  170. custom_colors/font_color = Color( 0.368627, 0.368627, 0.368627, 1 )
  171. custom_colors/font_color_shadow = Color( 1, 1, 1, 1 )
  172. text = "0000:00:00"
  173. align = 2
  174. valign = 1
  175. [node name="Menus" type="CenterContainer" parent="GUI"]
  176. anchor_right = 1.0
  177. anchor_bottom = 1.0
  178. __meta__ = {
  179. "_edit_use_anchors_": false
  180. }
  181. [node name="PauseMenu" type="NinePatchRect" parent="GUI/Menus"]
  182. visible = false
  183. margin_left = 563.0
  184. margin_top = 183.0
  185. margin_right = 803.0
  186. margin_bottom = 583.0
  187. rect_min_size = Vector2( 240, 400 )
  188. texture = ExtResource( 3 )
  189. region_rect = Rect2( 0, 0, 64, 64 )
  190. patch_margin_left = 5
  191. patch_margin_top = 32
  192. patch_margin_right = 5
  193. patch_margin_bottom = 4
  194. [node name="Box" type="VBoxContainer" parent="GUI/Menus/PauseMenu"]
  195. margin_right = 40.0
  196. margin_bottom = 40.0
  197. __meta__ = {
  198. "_edit_use_anchors_": false
  199. }
  200. [node name="MarginContainer" type="MarginContainer" parent="GUI/Menus/PauseMenu/Box"]
  201. margin_right = 240.0
  202. rect_min_size = Vector2( 81, 0 )
  203. __meta__ = {
  204. "_edit_use_anchors_": false
  205. }
  206. [node name="Label" type="Label" parent="GUI/Menus/PauseMenu/Box"]
  207. margin_top = 4.0
  208. margin_right = 240.0
  209. margin_bottom = 28.0
  210. rect_min_size = Vector2( 240, 0 )
  211. custom_fonts/font = ExtResource( 13 )
  212. custom_colors/font_color = Color( 0.192157, 0.192157, 0.192157, 1 )
  213. custom_colors/font_outline_modulate = Color( 1, 1, 1, 1 )
  214. custom_colors/font_color_shadow = Color( 0.760784, 0.745098, 1, 1 )
  215. text = "Pause Menu"
  216. align = 1
  217. valign = 1
  218. __meta__ = {
  219. "_edit_use_anchors_": false
  220. }
  221. [node name="MarginContainer2" type="MarginContainer" parent="GUI/Menus/PauseMenu/Box"]
  222. margin_top = 32.0
  223. margin_right = 240.0
  224. margin_bottom = 56.0
  225. rect_min_size = Vector2( 0, 24 )
  226. [node name="Resume Button" type="HBoxContainer" parent="GUI/Menus/PauseMenu/Box"]
  227. margin_top = 60.0
  228. margin_right = 240.0
  229. margin_bottom = 108.0
  230. [node name="MarginContainer" type="MarginContainer" parent="GUI/Menus/PauseMenu/Box/Resume Button"]
  231. margin_right = 16.0
  232. margin_bottom = 48.0
  233. rect_min_size = Vector2( 16, 0 )
  234. [node name="PM_Resume" type="TextureButton" parent="GUI/Menus/PauseMenu/Box/Resume Button"]
  235. margin_left = 20.0
  236. margin_right = 220.0
  237. margin_bottom = 48.0
  238. texture_normal = ExtResource( 4 )
  239. texture_pressed = ExtResource( 1 )
  240. [node name="Label" type="Label" parent="GUI/Menus/PauseMenu/Box/Resume Button/PM_Resume"]
  241. anchor_left = 0.5
  242. anchor_top = 0.5
  243. anchor_right = 0.5
  244. anchor_bottom = 0.5
  245. margin_left = -26.0
  246. margin_top = -7.0
  247. margin_right = 26.0
  248. margin_bottom = 7.0
  249. text = "Resume"
  250. align = 1
  251. valign = 1
  252. __meta__ = {
  253. "_edit_use_anchors_": false
  254. }
  255. [node name="Quit Button" type="HBoxContainer" parent="GUI/Menus/PauseMenu/Box"]
  256. margin_top = 112.0
  257. margin_right = 240.0
  258. margin_bottom = 160.0
  259. [node name="MarginContainer" type="MarginContainer" parent="GUI/Menus/PauseMenu/Box/Quit Button"]
  260. margin_right = 16.0
  261. margin_bottom = 48.0
  262. rect_min_size = Vector2( 16, 0 )
  263. [node name="PM_Quit" type="TextureButton" parent="GUI/Menus/PauseMenu/Box/Quit Button"]
  264. margin_left = 20.0
  265. margin_right = 220.0
  266. margin_bottom = 48.0
  267. texture_normal = ExtResource( 4 )
  268. texture_pressed = ExtResource( 1 )
  269. [node name="Label" type="Label" parent="GUI/Menus/PauseMenu/Box/Quit Button/PM_Quit"]
  270. anchor_left = 0.5
  271. anchor_top = 0.5
  272. anchor_right = 0.5
  273. anchor_bottom = 0.5
  274. margin_left = -35.0
  275. margin_top = -7.0
  276. margin_right = 35.0
  277. margin_bottom = 7.0
  278. text = "Quit Game"
  279. align = 1
  280. valign = 1
  281. __meta__ = {
  282. "_edit_use_anchors_": false
  283. }
  284. [connection signal="tween_all_completed" from="ExitTween" to="." method="_on_ExitTween_tween_all_completed"]
  285. [connection signal="pressed" from="GUI/Menus/PauseMenu/Box/Resume Button/PM_Resume" to="GUI" method="_on_PM_Resume_pressed"]
  286. [connection signal="pressed" from="GUI/Menus/PauseMenu/Box/Quit Button/PM_Quit" to="GUI" method="_on_PM_Resume_pressed"]
  287. [connection signal="pressed" from="GUI/Menus/PauseMenu/Box/Quit Button/PM_Quit" to="." method="_on_PM_Quit_pressed"]