Node2D.tscn 11 KB

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