A team game with an emphasis on movement (with no shooting), inspired by Overwatch and Zineth
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.

462 lines
9.9 KiB

  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://scripts/lobby.gd" type="Script" id=1]
  3. [ext_resource path="res://scripts/hero_select.gd" type="Script" id=2]
  4. [sub_resource type="DynamicFontData" id=1]
  5. font_path = "res://assets/DejaVuSansMono.ttf"
  6. _sections_unfolded = [ "Resource" ]
  7. [sub_resource type="DynamicFont" id=2]
  8. size = 16
  9. use_mipmaps = false
  10. use_filter = false
  11. font_data = SubResource( 1 )
  12. _sections_unfolded = [ "Font", "Resource", "Settings" ]
  13. [node name="Control" type="Control"]
  14. anchor_left = 0.0
  15. anchor_top = 0.0
  16. anchor_right = 0.0
  17. anchor_bottom = 0.0
  18. margin_left = 80.0
  19. margin_top = 99.0
  20. margin_right = 120.0
  21. margin_bottom = 139.0
  22. rect_pivot_offset = Vector2( 0, 0 )
  23. mouse_filter = 0
  24. mouse_default_cursor_shape = 0
  25. size_flags_horizontal = 1
  26. size_flags_vertical = 1
  27. script = ExtResource( 1 )
  28. _sections_unfolded = [ "Anchor" ]
  29. [node name="Server" type="Button" parent="." index="0"]
  30. anchor_left = 0.0
  31. anchor_top = 0.0
  32. anchor_right = 0.0
  33. anchor_bottom = 0.0
  34. margin_left = 7.0
  35. margin_top = -9.0
  36. margin_right = 159.0
  37. margin_bottom = 46.0
  38. rect_pivot_offset = Vector2( 0, 0 )
  39. focus_mode = 2
  40. mouse_filter = 0
  41. mouse_default_cursor_shape = 0
  42. size_flags_horizontal = 1
  43. size_flags_vertical = 1
  44. toggle_mode = false
  45. enabled_focus_mode = 2
  46. shortcut = null
  47. group = null
  48. text = "Server"
  49. flat = false
  50. align = 1
  51. [node name="ServerStart" type="Button" parent="." index="1"]
  52. visible = false
  53. anchor_left = 0.0
  54. anchor_top = 0.0
  55. anchor_right = 0.0
  56. anchor_bottom = 0.0
  57. margin_left = 166.0
  58. margin_top = -10.0
  59. margin_right = 279.0
  60. margin_bottom = 45.0
  61. rect_pivot_offset = Vector2( 0, 0 )
  62. focus_mode = 2
  63. mouse_filter = 0
  64. mouse_default_cursor_shape = 0
  65. size_flags_horizontal = 1
  66. size_flags_vertical = 1
  67. toggle_mode = false
  68. enabled_focus_mode = 2
  69. shortcut = null
  70. group = null
  71. text = "Start game"
  72. flat = false
  73. align = 1
  74. _sections_unfolded = [ "Visibility" ]
  75. [node name="LevelSelect" type="OptionButton" parent="ServerStart" index="0"]
  76. anchor_left = 0.0
  77. anchor_top = 0.0
  78. anchor_right = 0.0
  79. anchor_bottom = 0.0
  80. margin_left = 123.0
  81. margin_top = 1.0
  82. margin_right = 238.0
  83. margin_bottom = 53.0
  84. rect_pivot_offset = Vector2( 0, 0 )
  85. focus_mode = 2
  86. mouse_filter = 0
  87. mouse_default_cursor_shape = 0
  88. size_flags_horizontal = 1
  89. size_flags_vertical = 1
  90. toggle_mode = false
  91. action_mode = 0
  92. enabled_focus_mode = 2
  93. shortcut = null
  94. group = null
  95. text = "Platform map"
  96. flat = false
  97. align = 0
  98. selected = 0
  99. items = [ "Platform map", null, false, 0, null, "City-like thing", null, false, 1, null, "Slide", null, false, 2, null ]
  100. [node name="HSeparator" type="HSeparator" parent="." index="2"]
  101. anchor_left = 0.0
  102. anchor_top = 0.0
  103. anchor_right = 0.0
  104. anchor_bottom = 0.0
  105. margin_left = 10.0
  106. margin_top = 61.0
  107. margin_right = 408.0
  108. margin_bottom = 65.0
  109. rect_pivot_offset = Vector2( 0, 0 )
  110. mouse_filter = 0
  111. mouse_default_cursor_shape = 0
  112. size_flags_horizontal = 1
  113. size_flags_vertical = 1
  114. [node name="Client" type="Button" parent="." index="3"]
  115. anchor_left = 0.0
  116. anchor_top = 0.0
  117. anchor_right = 0.0
  118. anchor_bottom = 0.0
  119. margin_left = 10.0
  120. margin_top = 76.0
  121. margin_right = 159.0
  122. margin_bottom = 133.0
  123. rect_pivot_offset = Vector2( 0, 0 )
  124. focus_mode = 2
  125. mouse_filter = 0
  126. mouse_default_cursor_shape = 0
  127. size_flags_horizontal = 1
  128. size_flags_vertical = 1
  129. toggle_mode = false
  130. enabled_focus_mode = 2
  131. shortcut = null
  132. group = null
  133. text = "Client"
  134. flat = false
  135. align = 1
  136. [node name="IPLabel" type="Label" parent="." index="4"]
  137. anchor_left = 0.0
  138. anchor_top = 0.0
  139. anchor_right = 0.0
  140. anchor_bottom = 0.0
  141. margin_left = 178.0
  142. margin_top = 85.0
  143. margin_right = 203.0
  144. margin_bottom = 101.0
  145. rect_pivot_offset = Vector2( 0, 0 )
  146. mouse_filter = 2
  147. mouse_default_cursor_shape = 0
  148. size_flags_horizontal = 1
  149. size_flags_vertical = 4
  150. text = "IP:"
  151. percent_visible = 1.0
  152. lines_skipped = 0
  153. max_lines_visible = -1
  154. _sections_unfolded = [ "Visibility" ]
  155. [node name="IP" type="TextEdit" parent="." index="5"]
  156. anchor_left = 0.0
  157. anchor_top = 0.0
  158. anchor_right = 0.0
  159. anchor_bottom = 0.0
  160. margin_left = 175.0
  161. margin_top = 106.0
  162. margin_right = 401.0
  163. margin_bottom = 124.0
  164. rect_pivot_offset = Vector2( 0, 0 )
  165. focus_mode = 2
  166. mouse_filter = 0
  167. mouse_default_cursor_shape = 0
  168. size_flags_horizontal = 1
  169. size_flags_vertical = 1
  170. text = "127.0.0.1"
  171. readonly = false
  172. highlight_current_line = false
  173. syntax_highlighting = false
  174. show_line_numbers = false
  175. highlight_all_occurrences = false
  176. override_selected_font_color = false
  177. context_menu_enabled = true
  178. smooth_scrolling = false
  179. v_scroll_speed = 80.0
  180. hiding_enabled = 0
  181. wrap_lines = false
  182. caret_block_mode = false
  183. caret_blink = false
  184. caret_blink_speed = 0.65
  185. caret_moving_by_right_click = true
  186. [node name="HSeparator2" type="HSeparator" parent="." index="6"]
  187. anchor_left = 0.0
  188. anchor_top = 0.0
  189. anchor_right = 0.0
  190. anchor_bottom = 0.0
  191. margin_left = 13.0
  192. margin_top = 154.0
  193. margin_right = 411.0
  194. margin_bottom = 158.0
  195. rect_pivot_offset = Vector2( 0, 0 )
  196. mouse_filter = 0
  197. mouse_default_cursor_shape = 0
  198. size_flags_horizontal = 1
  199. size_flags_vertical = 1
  200. [node name="Singleplayer" type="Button" parent="." index="7"]
  201. anchor_left = 0.0
  202. anchor_top = 0.0
  203. anchor_right = 0.0
  204. anchor_bottom = 0.0
  205. margin_left = 12.0
  206. margin_top = 174.0
  207. margin_right = 159.0
  208. margin_bottom = 237.0
  209. rect_pivot_offset = Vector2( 0, 0 )
  210. focus_mode = 2
  211. mouse_filter = 0
  212. mouse_default_cursor_shape = 0
  213. size_flags_horizontal = 1
  214. size_flags_vertical = 1
  215. toggle_mode = false
  216. enabled_focus_mode = 2
  217. shortcut = null
  218. group = null
  219. text = "Singleplayer"
  220. flat = false
  221. align = 1
  222. [node name="VSeparator" type="VSeparator" parent="." index="8"]
  223. anchor_left = 0.0
  224. anchor_top = 0.0
  225. anchor_right = 0.0
  226. anchor_bottom = 0.0
  227. margin_left = 431.0
  228. margin_top = -3.0
  229. margin_right = 435.0
  230. margin_bottom = 110.0
  231. rect_pivot_offset = Vector2( 0, 0 )
  232. mouse_filter = 0
  233. mouse_default_cursor_shape = 0
  234. size_flags_horizontal = 1
  235. size_flags_vertical = 1
  236. [node name="Label" type="Label" parent="." index="9"]
  237. anchor_left = 0.0
  238. anchor_top = 0.0
  239. anchor_right = 0.0
  240. anchor_bottom = 0.0
  241. margin_left = 459.0
  242. margin_top = -6.0
  243. margin_right = 564.0
  244. margin_bottom = 13.0
  245. rect_pivot_offset = Vector2( 0, 0 )
  246. mouse_filter = 2
  247. mouse_default_cursor_shape = 0
  248. size_flags_horizontal = 1
  249. size_flags_vertical = 4
  250. text = "Player Settings"
  251. percent_visible = 1.0
  252. lines_skipped = 0
  253. max_lines_visible = -1
  254. [node name="Username" type="TextEdit" parent="." index="10"]
  255. anchor_left = 0.0
  256. anchor_top = 0.0
  257. anchor_right = 0.0
  258. anchor_bottom = 0.0
  259. margin_left = 457.0
  260. margin_top = 27.0
  261. margin_right = 636.0
  262. margin_bottom = 47.0
  263. rect_pivot_offset = Vector2( 0, 0 )
  264. focus_mode = 2
  265. mouse_filter = 0
  266. mouse_default_cursor_shape = 0
  267. size_flags_horizontal = 1
  268. size_flags_vertical = 1
  269. text = "Nickname"
  270. readonly = false
  271. highlight_current_line = false
  272. syntax_highlighting = false
  273. show_line_numbers = false
  274. highlight_all_occurrences = false
  275. override_selected_font_color = false
  276. context_menu_enabled = true
  277. smooth_scrolling = false
  278. v_scroll_speed = 80.0
  279. hiding_enabled = 0
  280. wrap_lines = false
  281. caret_block_mode = false
  282. caret_blink = false
  283. caret_blink_speed = 0.65
  284. caret_moving_by_right_click = true
  285. [node name="HeroSelectLabel" type="Label" parent="." index="11"]
  286. anchor_left = 0.0
  287. anchor_top = 0.0
  288. anchor_right = 0.0
  289. anchor_bottom = 0.0
  290. margin_left = 460.0
  291. margin_top = 66.0
  292. margin_right = 538.0
  293. margin_bottom = 80.0
  294. rect_pivot_offset = Vector2( 0, 0 )
  295. mouse_filter = 2
  296. mouse_default_cursor_shape = 0
  297. size_flags_horizontal = 1
  298. size_flags_vertical = 4
  299. text = "Hero Select:"
  300. percent_visible = 1.0
  301. lines_skipped = 0
  302. max_lines_visible = -1
  303. [node name="HeroSelect" type="OptionButton" parent="." index="12"]
  304. anchor_left = 0.0
  305. anchor_top = 0.0
  306. anchor_right = 0.0
  307. anchor_bottom = 0.0
  308. margin_left = 457.0
  309. margin_top = 94.0
  310. margin_right = 645.0
  311. margin_bottom = 114.0
  312. rect_rotation = -0.0115615
  313. rect_pivot_offset = Vector2( 0, 0 )
  314. focus_mode = 2
  315. mouse_filter = 0
  316. mouse_default_cursor_shape = 0
  317. size_flags_horizontal = 1
  318. size_flags_vertical = 1
  319. toggle_mode = false
  320. action_mode = 0
  321. enabled_focus_mode = 2
  322. shortcut = null
  323. group = null
  324. flat = false
  325. align = 0
  326. selected = -1
  327. items = [ ]
  328. script = ExtResource( 2 )
  329. [node name="TeamLabel" type="Label" parent="." index="13"]
  330. anchor_left = 0.0
  331. anchor_top = 0.0
  332. anchor_right = 0.0
  333. anchor_bottom = 0.0
  334. margin_left = 459.0
  335. margin_top = 132.0
  336. margin_right = 558.0
  337. margin_bottom = 146.0
  338. rect_pivot_offset = Vector2( 0, 0 )
  339. mouse_filter = 2
  340. mouse_default_cursor_shape = 0
  341. size_flags_horizontal = 1
  342. size_flags_vertical = 4
  343. text = "Assigned team:"
  344. percent_visible = 1.0
  345. lines_skipped = 0
  346. max_lines_visible = -1
  347. [node name="Team" type="Label" parent="." index="14"]
  348. anchor_left = 0.0
  349. anchor_top = 0.0
  350. anchor_right = 0.0
  351. anchor_bottom = 0.0
  352. margin_left = 460.0
  353. margin_top = 157.0
  354. margin_right = 500.0
  355. margin_bottom = 171.0
  356. rect_pivot_offset = Vector2( 0, 0 )
  357. mouse_filter = 2
  358. mouse_default_cursor_shape = 0
  359. size_flags_horizontal = 1
  360. size_flags_vertical = 4
  361. percent_visible = 1.0
  362. lines_skipped = 0
  363. max_lines_visible = -1
  364. [node name="HSeparator3" type="HSeparator" parent="." index="15"]
  365. anchor_left = 0.0
  366. anchor_top = 0.0
  367. anchor_right = 0.0
  368. anchor_bottom = 0.0
  369. margin_left = 19.0
  370. margin_top = 254.0
  371. margin_right = 645.0
  372. margin_bottom = 258.0
  373. rect_pivot_offset = Vector2( 0, 0 )
  374. mouse_filter = 0
  375. mouse_default_cursor_shape = 0
  376. size_flags_horizontal = 1
  377. size_flags_vertical = 1
  378. [node name="PlayerListLabel" type="Label" parent="." index="16"]
  379. anchor_left = 0.0
  380. anchor_top = 0.0
  381. anchor_right = 0.0
  382. anchor_bottom = 0.0
  383. margin_left = 14.0
  384. margin_top = 270.0
  385. margin_right = 136.0
  386. margin_bottom = 284.0
  387. rect_pivot_offset = Vector2( 0, 0 )
  388. mouse_filter = 2
  389. mouse_default_cursor_shape = 0
  390. size_flags_horizontal = 1
  391. size_flags_vertical = 4
  392. text = "Connected Players:"
  393. percent_visible = 1.0
  394. lines_skipped = 0
  395. max_lines_visible = -1
  396. [node name="PlayerList" type="Label" parent="." index="17"]
  397. anchor_left = 0.5
  398. anchor_top = 0.5
  399. anchor_right = 0.5
  400. anchor_bottom = 0.5
  401. margin_left = -7.0
  402. margin_top = 270.0
  403. margin_right = 639.0
  404. margin_bottom = 460.0
  405. rect_pivot_offset = Vector2( 0, 0 )
  406. mouse_filter = 2
  407. mouse_default_cursor_shape = 0
  408. size_flags_horizontal = 1
  409. size_flags_vertical = 4
  410. custom_fonts/font = SubResource( 2 )
  411. text = "Waiting for players to connect...."
  412. percent_visible = 1.0
  413. lines_skipped = 0
  414. max_lines_visible = -1
  415. _sections_unfolded = [ "BBCode", "custom_fonts" ]