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.

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