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.

505 lines
11 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" index="0"]
  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 = 207.0
  161. margin_top = 83.0
  162. margin_right = 405.0
  163. margin_bottom = 101.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="ForceStart" type="CheckBox" 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 = 172.0
  192. margin_top = 111.0
  193. margin_right = 196.0
  194. margin_bottom = 135.0
  195. rect_pivot_offset = Vector2( 0, 0 )
  196. focus_mode = 2
  197. mouse_filter = 0
  198. mouse_default_cursor_shape = 0
  199. size_flags_horizontal = 1
  200. size_flags_vertical = 1
  201. toggle_mode = true
  202. enabled_focus_mode = 2
  203. shortcut = null
  204. group = null
  205. flat = false
  206. align = 0
  207. [node name="ForceStartLabel" type="Label" parent="ForceStart" index="0"]
  208. anchor_left = 0.0
  209. anchor_top = 0.0
  210. anchor_right = 0.0
  211. anchor_bottom = 0.0
  212. margin_left = 29.0
  213. margin_top = 5.0
  214. margin_right = 69.0
  215. margin_bottom = 19.0
  216. rect_pivot_offset = Vector2( 0, 0 )
  217. mouse_filter = 2
  218. mouse_default_cursor_shape = 0
  219. size_flags_horizontal = 1
  220. size_flags_vertical = 4
  221. text = "Force game to start"
  222. percent_visible = 1.0
  223. lines_skipped = 0
  224. max_lines_visible = -1
  225. [node name="HSeparator2" type="HSeparator" parent="." index="7"]
  226. anchor_left = 0.0
  227. anchor_top = 0.0
  228. anchor_right = 0.0
  229. anchor_bottom = 0.0
  230. margin_left = 13.0
  231. margin_top = 154.0
  232. margin_right = 411.0
  233. margin_bottom = 158.0
  234. rect_pivot_offset = Vector2( 0, 0 )
  235. mouse_filter = 0
  236. mouse_default_cursor_shape = 0
  237. size_flags_horizontal = 1
  238. size_flags_vertical = 1
  239. [node name="Singleplayer" type="Button" parent="." index="8"]
  240. anchor_left = 0.0
  241. anchor_top = 0.0
  242. anchor_right = 0.0
  243. anchor_bottom = 0.0
  244. margin_left = 12.0
  245. margin_top = 174.0
  246. margin_right = 159.0
  247. margin_bottom = 237.0
  248. rect_pivot_offset = Vector2( 0, 0 )
  249. focus_mode = 2
  250. mouse_filter = 0
  251. mouse_default_cursor_shape = 0
  252. size_flags_horizontal = 1
  253. size_flags_vertical = 1
  254. toggle_mode = false
  255. enabled_focus_mode = 2
  256. shortcut = null
  257. group = null
  258. text = "Singleplayer"
  259. flat = false
  260. align = 1
  261. [node name="VSeparator" type="VSeparator" parent="." index="9"]
  262. anchor_left = 0.0
  263. anchor_top = 0.0
  264. anchor_right = 0.0
  265. anchor_bottom = 0.0
  266. margin_left = 431.0
  267. margin_top = -3.0
  268. margin_right = 435.0
  269. margin_bottom = 110.0
  270. rect_pivot_offset = Vector2( 0, 0 )
  271. mouse_filter = 0
  272. mouse_default_cursor_shape = 0
  273. size_flags_horizontal = 1
  274. size_flags_vertical = 1
  275. [node name="Label" type="Label" parent="." index="10"]
  276. anchor_left = 0.0
  277. anchor_top = 0.0
  278. anchor_right = 0.0
  279. anchor_bottom = 0.0
  280. margin_left = 459.0
  281. margin_top = -6.0
  282. margin_right = 564.0
  283. margin_bottom = 13.0
  284. rect_pivot_offset = Vector2( 0, 0 )
  285. mouse_filter = 2
  286. mouse_default_cursor_shape = 0
  287. size_flags_horizontal = 1
  288. size_flags_vertical = 4
  289. text = "Player Settings"
  290. percent_visible = 1.0
  291. lines_skipped = 0
  292. max_lines_visible = -1
  293. [node name="Username" type="TextEdit" parent="." index="11"]
  294. anchor_left = 0.0
  295. anchor_top = 0.0
  296. anchor_right = 0.0
  297. anchor_bottom = 0.0
  298. margin_left = 457.0
  299. margin_top = 27.0
  300. margin_right = 636.0
  301. margin_bottom = 47.0
  302. rect_pivot_offset = Vector2( 0, 0 )
  303. focus_mode = 2
  304. mouse_filter = 0
  305. mouse_default_cursor_shape = 0
  306. size_flags_horizontal = 1
  307. size_flags_vertical = 1
  308. text = "Nickname"
  309. readonly = false
  310. highlight_current_line = false
  311. syntax_highlighting = false
  312. show_line_numbers = false
  313. highlight_all_occurrences = false
  314. override_selected_font_color = false
  315. context_menu_enabled = true
  316. smooth_scrolling = false
  317. v_scroll_speed = 80.0
  318. hiding_enabled = 0
  319. wrap_lines = false
  320. caret_block_mode = false
  321. caret_blink = false
  322. caret_blink_speed = 0.65
  323. caret_moving_by_right_click = true
  324. [node name="HeroSelectLabel" type="Label" parent="." index="12"]
  325. anchor_left = 0.0
  326. anchor_top = 0.0
  327. anchor_right = 0.0
  328. anchor_bottom = 0.0
  329. margin_left = 460.0
  330. margin_top = 66.0
  331. margin_right = 538.0
  332. margin_bottom = 80.0
  333. rect_pivot_offset = Vector2( 0, 0 )
  334. mouse_filter = 2
  335. mouse_default_cursor_shape = 0
  336. size_flags_horizontal = 1
  337. size_flags_vertical = 4
  338. text = "Hero Select:"
  339. percent_visible = 1.0
  340. lines_skipped = 0
  341. max_lines_visible = -1
  342. [node name="HeroSelect" type="OptionButton" parent="." index="13"]
  343. anchor_left = 0.0
  344. anchor_top = 0.0
  345. anchor_right = 0.0
  346. anchor_bottom = 0.0
  347. margin_left = 457.0
  348. margin_top = 94.0
  349. margin_right = 645.0
  350. margin_bottom = 114.0
  351. rect_rotation = -0.0115615
  352. rect_pivot_offset = Vector2( 0, 0 )
  353. focus_mode = 2
  354. mouse_filter = 0
  355. mouse_default_cursor_shape = 0
  356. size_flags_horizontal = 1
  357. size_flags_vertical = 1
  358. toggle_mode = false
  359. action_mode = 0
  360. enabled_focus_mode = 2
  361. shortcut = null
  362. group = null
  363. flat = false
  364. align = 0
  365. selected = -1
  366. items = [ ]
  367. script = ExtResource( 2 )
  368. [node name="TeamLabel" type="Label" parent="." index="14"]
  369. anchor_left = 0.0
  370. anchor_top = 0.0
  371. anchor_right = 0.0
  372. anchor_bottom = 0.0
  373. margin_left = 459.0
  374. margin_top = 132.0
  375. margin_right = 558.0
  376. margin_bottom = 146.0
  377. rect_pivot_offset = Vector2( 0, 0 )
  378. mouse_filter = 2
  379. mouse_default_cursor_shape = 0
  380. size_flags_horizontal = 1
  381. size_flags_vertical = 4
  382. text = "Assigned team:"
  383. percent_visible = 1.0
  384. lines_skipped = 0
  385. max_lines_visible = -1
  386. [node name="Team" type="Label" parent="." index="15"]
  387. anchor_left = 0.0
  388. anchor_top = 0.0
  389. anchor_right = 0.0
  390. anchor_bottom = 0.0
  391. margin_left = 460.0
  392. margin_top = 157.0
  393. margin_right = 500.0
  394. margin_bottom = 171.0
  395. rect_pivot_offset = Vector2( 0, 0 )
  396. mouse_filter = 2
  397. mouse_default_cursor_shape = 0
  398. size_flags_horizontal = 1
  399. size_flags_vertical = 4
  400. percent_visible = 1.0
  401. lines_skipped = 0
  402. max_lines_visible = -1
  403. [node name="HSeparator3" type="HSeparator" parent="." index="16"]
  404. anchor_left = 0.0
  405. anchor_top = 0.0
  406. anchor_right = 0.0
  407. anchor_bottom = 0.0
  408. margin_left = 19.0
  409. margin_top = 254.0
  410. margin_right = 645.0
  411. margin_bottom = 258.0
  412. rect_pivot_offset = Vector2( 0, 0 )
  413. mouse_filter = 0
  414. mouse_default_cursor_shape = 0
  415. size_flags_horizontal = 1
  416. size_flags_vertical = 1
  417. [node name="PlayerListLabel" type="Label" parent="." index="17"]
  418. anchor_left = 0.0
  419. anchor_top = 0.0
  420. anchor_right = 0.0
  421. anchor_bottom = 0.0
  422. margin_left = 14.0
  423. margin_top = 270.0
  424. margin_right = 136.0
  425. margin_bottom = 284.0
  426. rect_pivot_offset = Vector2( 0, 0 )
  427. mouse_filter = 2
  428. mouse_default_cursor_shape = 0
  429. size_flags_horizontal = 1
  430. size_flags_vertical = 4
  431. text = "Connected Players:"
  432. percent_visible = 1.0
  433. lines_skipped = 0
  434. max_lines_visible = -1
  435. [node name="PlayerList" type="Label" parent="." index="18"]
  436. anchor_left = 0.5
  437. anchor_top = 0.5
  438. anchor_right = 0.5
  439. anchor_bottom = 0.5
  440. margin_left = -7.0
  441. margin_top = 270.0
  442. margin_right = 639.0
  443. margin_bottom = 460.0
  444. rect_pivot_offset = Vector2( 0, 0 )
  445. mouse_filter = 2
  446. mouse_default_cursor_shape = 0
  447. size_flags_horizontal = 1
  448. size_flags_vertical = 4
  449. custom_fonts/font = SubResource( 2 )
  450. text = "Waiting for players to connect...."
  451. percent_visible = 1.0
  452. lines_skipped = 0
  453. max_lines_visible = -1
  454. _sections_unfolded = [ "BBCode", "custom_fonts" ]