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.

331 lines
9.3KB

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