Node2D.tscn 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. [gd_scene load_steps=8 format=2]
  2. [ext_resource path="res://greeting_screen.gd" type="Script" id=1]
  3. [ext_resource path="res://MAIN.gd" type="Script" id=2]
  4. [ext_resource path="res://spawner.gd" type="Script" id=3]
  5. [ext_resource path="res://Register.gd" type="Script" id=4]
  6. [ext_resource path="res://Login.gd" type="Script" id=5]
  7. [ext_resource path="res://status_label.gd" type="Script" id=6]
  8. [ext_resource path="res://brick3.gd" type="Script" id=7]
  9. [node name="MAIN" type="Node2D"]
  10. script = ExtResource( 2 )
  11. [node name="UI" type="CanvasLayer" parent="."]
  12. [node name="STATUS" type="Label" parent="UI"]
  13. margin_right = 40.0
  14. margin_bottom = 14.0
  15. script = ExtResource( 6 )
  16. __meta__ = {
  17. "_edit_use_anchors_": false
  18. }
  19. [node name="greeting_screen" type="Node2D" parent="UI"]
  20. script = ExtResource( 1 )
  21. [node name="PanelContainer" type="PanelContainer" parent="UI/greeting_screen"]
  22. margin_left = 460.0
  23. margin_top = 268.0
  24. margin_right = 502.0
  25. margin_bottom = 302.0
  26. __meta__ = {
  27. "_edit_use_anchors_": false
  28. }
  29. [node name="HBoxContainer" type="HBoxContainer" parent="UI/greeting_screen/PanelContainer"]
  30. margin_left = 7.0
  31. margin_top = 7.0
  32. margin_right = 115.0
  33. margin_bottom = 27.0
  34. [node name="register" type="Button" parent="UI/greeting_screen/PanelContainer/HBoxContainer"]
  35. margin_right = 61.0
  36. margin_bottom = 20.0
  37. text = "register"
  38. [node name="login" type="Button" parent="UI/greeting_screen/PanelContainer/HBoxContainer"]
  39. margin_left = 65.0
  40. margin_right = 108.0
  41. margin_bottom = 20.0
  42. text = "login"
  43. [node name="Register" type="Node2D" parent="UI/greeting_screen"]
  44. visible = false
  45. script = ExtResource( 4 )
  46. [node name="PanelContainer" type="PanelContainer" parent="UI/greeting_screen/Register"]
  47. margin_left = 386.0
  48. margin_top = 236.0
  49. margin_right = 689.0
  50. margin_bottom = 354.0
  51. __meta__ = {
  52. "_edit_use_anchors_": false
  53. }
  54. [node name="VBoxContainer" type="VBoxContainer" parent="UI/greeting_screen/Register/PanelContainer"]
  55. margin_left = 7.0
  56. margin_top = 7.0
  57. margin_right = 296.0
  58. margin_bottom = 111.0
  59. [node name="done" type="Label" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer"]
  60. visible = false
  61. modulate = Color( 0.141176, 0.901961, 0.101961, 1 )
  62. margin_right = 289.0
  63. margin_bottom = 14.0
  64. text = "Done!"
  65. [node name="error" type="Label" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer"]
  66. visible = false
  67. modulate = Color( 0.929412, 0.360784, 0.0784314, 1 )
  68. margin_right = 289.0
  69. margin_bottom = 14.0
  70. text = "ERROR!"
  71. [node name="username" type="HBoxContainer" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer"]
  72. margin_right = 289.0
  73. margin_bottom = 24.0
  74. [node name="Label" type="Label" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer/username"]
  75. margin_top = 5.0
  76. margin_right = 72.0
  77. margin_bottom = 19.0
  78. text = "username: "
  79. [node name="edit" type="LineEdit" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer/username"]
  80. margin_left = 76.0
  81. margin_right = 276.0
  82. margin_bottom = 24.0
  83. rect_min_size = Vector2( 200, 0 )
  84. text = "coolperson"
  85. [node name="homeserver" type="HBoxContainer" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer"]
  86. margin_top = 28.0
  87. margin_right = 289.0
  88. margin_bottom = 52.0
  89. [node name="Label" type="Label" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer/homeserver"]
  90. margin_top = 5.0
  91. margin_right = 85.0
  92. margin_bottom = 19.0
  93. text = "homeserver: "
  94. [node name="edit" type="LineEdit" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer/homeserver"]
  95. margin_left = 89.0
  96. margin_right = 289.0
  97. margin_bottom = 24.0
  98. rect_min_size = Vector2( 200, 0 )
  99. text = "http://127.0.0.1:6167"
  100. [node name="password" type="HBoxContainer" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer"]
  101. margin_top = 56.0
  102. margin_right = 289.0
  103. margin_bottom = 80.0
  104. [node name="Label" type="Label" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer/password"]
  105. margin_top = 5.0
  106. margin_right = 68.0
  107. margin_bottom = 19.0
  108. text = "password: "
  109. [node name="edit" type="LineEdit" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer/password"]
  110. margin_left = 72.0
  111. margin_right = 272.0
  112. margin_bottom = 24.0
  113. rect_min_size = Vector2( 200, 0 )
  114. text = "password"
  115. secret = true
  116. [node name="HBoxContainer" type="HBoxContainer" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer"]
  117. margin_top = 84.0
  118. margin_right = 289.0
  119. margin_bottom = 104.0
  120. [node name="register" type="Button" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer/HBoxContainer"]
  121. margin_right = 64.0
  122. margin_bottom = 20.0
  123. text = "Register"
  124. [node name="back" type="Button" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer/HBoxContainer"]
  125. margin_right = 64.0
  126. margin_bottom = 20.0
  127. text = "back"
  128. [node name="Login" type="Node2D" parent="UI/greeting_screen"]
  129. visible = false
  130. script = ExtResource( 5 )
  131. [node name="PanelContainer" type="PanelContainer" parent="UI/greeting_screen/Login"]
  132. margin_left = 386.0
  133. margin_top = 236.0
  134. margin_right = 689.0
  135. margin_bottom = 354.0
  136. __meta__ = {
  137. "_edit_use_anchors_": false
  138. }
  139. [node name="VBoxContainer" type="VBoxContainer" parent="UI/greeting_screen/Login/PanelContainer"]
  140. margin_left = 7.0
  141. margin_top = 7.0
  142. margin_right = 296.0
  143. margin_bottom = 111.0
  144. [node name="done" type="Label" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer"]
  145. visible = false
  146. modulate = Color( 0.141176, 0.901961, 0.101961, 1 )
  147. margin_right = 289.0
  148. margin_bottom = 14.0
  149. text = "Done!"
  150. [node name="error" type="Label" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer"]
  151. visible = false
  152. modulate = Color( 0.929412, 0.360784, 0.0784314, 1 )
  153. margin_right = 289.0
  154. margin_bottom = 14.0
  155. text = "ERROR!"
  156. [node name="username" type="HBoxContainer" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer"]
  157. margin_right = 289.0
  158. margin_bottom = 24.0
  159. [node name="Label" type="Label" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer/username"]
  160. margin_top = 5.0
  161. margin_right = 72.0
  162. margin_bottom = 19.0
  163. text = "username: "
  164. [node name="edit" type="LineEdit" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer/username"]
  165. margin_left = 76.0
  166. margin_right = 276.0
  167. margin_bottom = 24.0
  168. rect_min_size = Vector2( 200, 0 )
  169. text = "coolperson"
  170. [node name="homeserver" type="HBoxContainer" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer"]
  171. margin_top = 28.0
  172. margin_right = 289.0
  173. margin_bottom = 52.0
  174. [node name="Label" type="Label" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer/homeserver"]
  175. margin_top = 5.0
  176. margin_right = 85.0
  177. margin_bottom = 19.0
  178. text = "homeserver: "
  179. [node name="edit" type="LineEdit" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer/homeserver"]
  180. margin_left = 89.0
  181. margin_right = 289.0
  182. margin_bottom = 24.0
  183. rect_min_size = Vector2( 200, 0 )
  184. text = "http://127.0.0.1:6167"
  185. [node name="password" type="HBoxContainer" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer"]
  186. margin_top = 56.0
  187. margin_right = 289.0
  188. margin_bottom = 80.0
  189. [node name="Label" type="Label" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer/password"]
  190. margin_top = 5.0
  191. margin_right = 68.0
  192. margin_bottom = 19.0
  193. text = "password: "
  194. [node name="edit" type="LineEdit" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer/password"]
  195. margin_left = 72.0
  196. margin_right = 272.0
  197. margin_bottom = 24.0
  198. rect_min_size = Vector2( 200, 0 )
  199. text = "password"
  200. secret = true
  201. [node name="HBoxContainer" type="HBoxContainer" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer"]
  202. margin_top = 84.0
  203. margin_right = 289.0
  204. margin_bottom = 104.0
  205. [node name="login" type="Button" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer/HBoxContainer"]
  206. margin_right = 43.0
  207. margin_bottom = 20.0
  208. text = ";ogin"
  209. [node name="back" type="Button" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer/HBoxContainer"]
  210. margin_left = 47.0
  211. margin_right = 88.0
  212. margin_bottom = 20.0
  213. text = "back"
  214. [node name="playscene" type="Node2D" parent="."]
  215. [node name="spawner" type="Node2D" parent="playscene"]
  216. position = Vector2( 426, 102 )
  217. script = ExtResource( 3 )
  218. [node name="Polygon2D" type="Polygon2D" parent="playscene/spawner"]
  219. color = Color( 0, 0, 0, 1 )
  220. polygon = PoolVector2Array( -39.5171, -61.9826, -27.5171, 46.0174, 94.4829, 22.0174, 74.4829, -39.9826 )
  221. [node name="Polygon2D" type="Polygon2D" parent="playscene"]
  222. position = Vector2( 712.505, 424.94 )
  223. offset = Vector2( -346.505, -284.94 )
  224. polygon = PoolVector2Array( -126, -280, -366, -28, -122, 292, 410, 302, 454, 68, 454, -264, 592, -276, 570, 346, -140, 384, -468, 142, -432, -100, -248, -230, -160, -312, 40, -330, 458, -318, 436, -254, 242.831, -270.922 )
  225. [node name="ground" type="StaticBody2D" parent="playscene/Polygon2D"]
  226. [node name="Polygon2D2" type="CollisionPolygon2D" parent="playscene/Polygon2D/ground"]
  227. position = Vector2( -342, -284 )
  228. polygon = PoolVector2Array( -126, -280, -366, -28, -122, 292, 410, 302, 454, 68, 454, -264, 592, -276, 570, 346, -140, 384, -468, 142, -432, -100, -248, -230, -160, -312, 40, -330, 458, -318, 436, -254 )
  229. [node name="brick" type="RigidBody2D" parent="playscene"]
  230. position = Vector2( 446, 400 )
  231. [node name="polygon_of_doom2" type="CollisionPolygon2D" parent="playscene/brick"]
  232. position = Vector2( -36, 32 )
  233. polygon = PoolVector2Array( -7.51709, -61.9826, -11.5171, -3.98257, 94.4829, -1.98257, 82.4829, -61.9826 )
  234. [node name="polygon_of_doom" type="Polygon2D" parent="playscene/brick/polygon_of_doom2"]
  235. position = Vector2( 32.4829, -29.9826 )
  236. color = Color( 0, 1, 0.976471, 1 )
  237. offset = Vector2( -36.4829, 29.9826 )
  238. polygon = PoolVector2Array( -7.51709, -61.9826, -11.5171, -3.98257, 94.4829, -1.98257, 82.4829, -61.9826 )
  239. [node name="brick2" type="RigidBody2D" parent="playscene"]
  240. position = Vector2( 434, 334 )
  241. [node name="polygon_of_doom2" type="CollisionPolygon2D" parent="playscene/brick2"]
  242. position = Vector2( -36, 32 )
  243. polygon = PoolVector2Array( -7.51709, -61.9826, -11.5171, -3.98257, 94.4829, -1.98257, 82.4829, -61.9826 )
  244. [node name="polygon_of_doom" type="Polygon2D" parent="playscene/brick2/polygon_of_doom2"]
  245. position = Vector2( 32.4829, -29.9826 )
  246. color = Color( 0, 1, 0.976471, 1 )
  247. offset = Vector2( -36.4829, 29.9826 )
  248. polygon = PoolVector2Array( -7.51709, -61.9826, -11.5171, -3.98257, 94.4829, -1.98257, 82.4829, -61.9826 )
  249. [node name="brick3" type="RigidBody2D" parent="playscene"]
  250. position = Vector2( 398, 260 )
  251. contacts_reported = 2
  252. contact_monitor = true
  253. can_sleep = false
  254. script = ExtResource( 7 )
  255. [node name="polygon_of_doom2" type="CollisionPolygon2D" parent="playscene/brick3"]
  256. position = Vector2( -36, 32 )
  257. polygon = PoolVector2Array( -7.51709, -61.9826, -11.5171, -3.98257, 94.4829, -1.98257, 82.4829, -61.9826 )
  258. [node name="polygon_of_doom" type="Polygon2D" parent="playscene/brick3/polygon_of_doom2"]
  259. position = Vector2( 32.4829, -29.9826 )
  260. color = Color( 0.0313726, 1, 0, 1 )
  261. offset = Vector2( -36.4829, 29.9826 )
  262. polygon = PoolVector2Array( -7.51709, -61.9826, -11.5171, -3.98257, 94.4829, -1.98257, 82.4829, -61.9826 )
  263. [node name="client" type="Node2D" parent="."]