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.

690 lines
15 KiB

  1. [gd_scene load_steps=7 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. [sub_resource type="DynamicFont" id=2]
  7. size = 30
  8. use_mipmaps = false
  9. use_filter = false
  10. font_data = SubResource( 1 )
  11. [sub_resource type="DynamicFontData" id=3]
  12. font_path = "res://assets/DejaVuSansMono.ttf"
  13. [sub_resource type="DynamicFont" id=4]
  14. size = 16
  15. use_mipmaps = false
  16. use_filter = false
  17. font_data = SubResource( 3 )
  18. [node name="Lobby" type="Control"]
  19. anchor_left = 0.0
  20. anchor_top = 0.0
  21. anchor_right = 0.0
  22. anchor_bottom = 0.0
  23. margin_left = 80.0
  24. margin_top = 99.0
  25. margin_right = 120.0
  26. margin_bottom = 139.0
  27. rect_pivot_offset = Vector2( 0, 0 )
  28. mouse_filter = 0
  29. mouse_default_cursor_shape = 0
  30. size_flags_horizontal = 1
  31. size_flags_vertical = 1
  32. script = ExtResource( 1 )
  33. [node name="Title" type="Label" parent="." index="0"]
  34. anchor_left = 0.0
  35. anchor_top = 0.0
  36. anchor_right = 0.0
  37. anchor_bottom = 0.0
  38. margin_left = 7.0
  39. margin_top = -72.0
  40. margin_right = 195.0
  41. margin_bottom = -32.0
  42. rect_pivot_offset = Vector2( 0, 0 )
  43. mouse_filter = 2
  44. mouse_default_cursor_shape = 0
  45. size_flags_horizontal = 1
  46. size_flags_vertical = 4
  47. custom_fonts/font = SubResource( 2 )
  48. text = "VANAGLORIA"
  49. percent_visible = 1.0
  50. lines_skipped = 0
  51. max_lines_visible = -1
  52. [node name="GameBrowser" type="Control" parent="." index="1"]
  53. editor/display_folded = true
  54. anchor_left = 0.0
  55. anchor_top = 0.0
  56. anchor_right = 0.0
  57. anchor_bottom = 0.0
  58. margin_right = 40.0
  59. margin_bottom = 40.0
  60. rect_pivot_offset = Vector2( 0, 0 )
  61. mouse_filter = 0
  62. mouse_default_cursor_shape = 0
  63. size_flags_horizontal = 1
  64. size_flags_vertical = 1
  65. [node name="Play" type="Button" parent="GameBrowser" index="0"]
  66. anchor_left = 0.0
  67. anchor_top = 0.0
  68. anchor_right = 0.0
  69. anchor_bottom = 0.0
  70. margin_left = 9.0
  71. margin_top = -2.0
  72. margin_right = 405.0
  73. margin_bottom = 53.0
  74. rect_pivot_offset = Vector2( 0, 0 )
  75. focus_mode = 2
  76. mouse_filter = 0
  77. mouse_default_cursor_shape = 0
  78. size_flags_horizontal = 1
  79. size_flags_vertical = 1
  80. toggle_mode = false
  81. enabled_focus_mode = 2
  82. shortcut = null
  83. group = null
  84. text = "Just, Play!"
  85. flat = false
  86. align = 1
  87. [node name="PickAGameLabel" type="Label" parent="GameBrowser" index="1"]
  88. anchor_left = 0.0
  89. anchor_top = 0.0
  90. anchor_right = 0.0
  91. anchor_bottom = 0.0
  92. margin_left = 10.0
  93. margin_top = 65.0
  94. margin_right = 114.0
  95. margin_bottom = 79.0
  96. rect_pivot_offset = Vector2( 0, 0 )
  97. mouse_filter = 2
  98. mouse_default_cursor_shape = 0
  99. size_flags_horizontal = 1
  100. size_flags_vertical = 4
  101. text = "Or, pick a game:"
  102. percent_visible = 1.0
  103. lines_skipped = 0
  104. max_lines_visible = -1
  105. [node name="GameList" type="ItemList" parent="GameBrowser" index="2"]
  106. anchor_left = 0.0
  107. anchor_top = 0.0
  108. anchor_right = 0.0
  109. anchor_bottom = 0.0
  110. margin_left = 8.0
  111. margin_top = 87.0
  112. margin_right = 411.0
  113. margin_bottom = 208.0
  114. rect_pivot_offset = Vector2( 0, 0 )
  115. rect_clip_content = true
  116. focus_mode = 2
  117. mouse_filter = 0
  118. mouse_default_cursor_shape = 0
  119. size_flags_horizontal = 1
  120. size_flags_vertical = 1
  121. items = [ "No Games Running", null, false ]
  122. select_mode = 0
  123. icon_mode = 1
  124. fixed_icon_size = Vector2( 0, 0 )
  125. [node name="Join" type="Button" parent="GameBrowser" index="3"]
  126. anchor_left = 0.0
  127. anchor_top = 0.0
  128. anchor_right = 0.0
  129. anchor_bottom = 0.0
  130. margin_left = 9.0
  131. margin_top = 217.0
  132. margin_right = 163.0
  133. margin_bottom = 244.0
  134. rect_pivot_offset = Vector2( 0, 0 )
  135. focus_mode = 2
  136. mouse_filter = 0
  137. mouse_default_cursor_shape = 0
  138. size_flags_horizontal = 1
  139. size_flags_vertical = 1
  140. toggle_mode = false
  141. enabled_focus_mode = 2
  142. shortcut = null
  143. group = null
  144. text = "Join Selected Game"
  145. flat = false
  146. align = 1
  147. [node name="VSeparator" type="VSeparator" parent="." index="2"]
  148. anchor_left = 0.0
  149. anchor_top = 0.0
  150. anchor_right = 0.0
  151. anchor_bottom = 0.0
  152. margin_left = 431.0
  153. margin_top = -3.0
  154. margin_right = 436.0
  155. margin_bottom = 234.0
  156. rect_pivot_offset = Vector2( 0, 0 )
  157. mouse_filter = 0
  158. mouse_default_cursor_shape = 0
  159. size_flags_horizontal = 1
  160. size_flags_vertical = 1
  161. [node name="PlayerSettings" type="Control" parent="." index="3"]
  162. editor/display_folded = true
  163. anchor_left = 0.0
  164. anchor_top = 0.0
  165. anchor_right = 0.0
  166. anchor_bottom = 0.0
  167. margin_right = 40.0
  168. margin_bottom = 40.0
  169. rect_pivot_offset = Vector2( 0, 0 )
  170. mouse_filter = 0
  171. mouse_default_cursor_shape = 0
  172. size_flags_horizontal = 1
  173. size_flags_vertical = 1
  174. [node name="PlayerSettingsLabel" type="Label" parent="PlayerSettings" index="0"]
  175. anchor_left = 0.0
  176. anchor_top = 0.0
  177. anchor_right = 0.0
  178. anchor_bottom = 0.0
  179. margin_left = 459.0
  180. margin_top = -6.0
  181. margin_right = 564.0
  182. margin_bottom = 13.0
  183. rect_pivot_offset = Vector2( 0, 0 )
  184. mouse_filter = 2
  185. mouse_default_cursor_shape = 0
  186. size_flags_horizontal = 1
  187. size_flags_vertical = 4
  188. text = "Player Settings"
  189. percent_visible = 1.0
  190. lines_skipped = 0
  191. max_lines_visible = -1
  192. [node name="Username" type="TextEdit" parent="PlayerSettings" index="1"]
  193. anchor_left = 0.0
  194. anchor_top = 0.0
  195. anchor_right = 0.0
  196. anchor_bottom = 0.0
  197. margin_left = 457.0
  198. margin_top = 27.0
  199. margin_right = 636.0
  200. margin_bottom = 47.0
  201. rect_pivot_offset = Vector2( 0, 0 )
  202. focus_mode = 2
  203. mouse_filter = 0
  204. mouse_default_cursor_shape = 0
  205. size_flags_horizontal = 1
  206. size_flags_vertical = 1
  207. text = "Nickname"
  208. readonly = false
  209. highlight_current_line = false
  210. syntax_highlighting = false
  211. show_line_numbers = false
  212. highlight_all_occurrences = false
  213. override_selected_font_color = false
  214. context_menu_enabled = true
  215. smooth_scrolling = false
  216. v_scroll_speed = 80.0
  217. hiding_enabled = 0
  218. wrap_lines = false
  219. caret_block_mode = false
  220. caret_blink = false
  221. caret_blink_speed = 0.65
  222. caret_moving_by_right_click = true
  223. [node name="HeroSelectLabel" type="Label" parent="PlayerSettings" index="2"]
  224. anchor_left = 0.0
  225. anchor_top = 0.0
  226. anchor_right = 0.0
  227. anchor_bottom = 0.0
  228. margin_left = 460.0
  229. margin_top = 66.0
  230. margin_right = 538.0
  231. margin_bottom = 80.0
  232. rect_pivot_offset = Vector2( 0, 0 )
  233. mouse_filter = 2
  234. mouse_default_cursor_shape = 0
  235. size_flags_horizontal = 1
  236. size_flags_vertical = 4
  237. text = "Hero Select:"
  238. percent_visible = 1.0
  239. lines_skipped = 0
  240. max_lines_visible = -1
  241. [node name="HeroSelect" type="OptionButton" parent="PlayerSettings" index="3"]
  242. anchor_left = 0.0
  243. anchor_top = 0.0
  244. anchor_right = 0.0
  245. anchor_bottom = 0.0
  246. margin_left = 457.0
  247. margin_top = 94.0
  248. margin_right = 645.0
  249. margin_bottom = 114.0
  250. rect_rotation = -0.0115615
  251. rect_pivot_offset = Vector2( 0, 0 )
  252. focus_mode = 2
  253. mouse_filter = 0
  254. mouse_default_cursor_shape = 0
  255. size_flags_horizontal = 1
  256. size_flags_vertical = 1
  257. toggle_mode = false
  258. action_mode = 0
  259. enabled_focus_mode = 2
  260. shortcut = null
  261. group = null
  262. flat = false
  263. align = 0
  264. selected = -1
  265. items = [ ]
  266. script = ExtResource( 2 )
  267. [node name="TeamLabel" type="Label" parent="PlayerSettings" index="4"]
  268. anchor_left = 0.0
  269. anchor_top = 0.0
  270. anchor_right = 0.0
  271. anchor_bottom = 0.0
  272. margin_left = 459.0
  273. margin_top = 132.0
  274. margin_right = 558.0
  275. margin_bottom = 146.0
  276. rect_pivot_offset = Vector2( 0, 0 )
  277. mouse_filter = 2
  278. mouse_default_cursor_shape = 0
  279. size_flags_horizontal = 1
  280. size_flags_vertical = 4
  281. text = "Assigned team:"
  282. percent_visible = 1.0
  283. lines_skipped = 0
  284. max_lines_visible = -1
  285. [node name="Team" type="Label" parent="PlayerSettings" index="5"]
  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 = 157.0
  292. margin_right = 500.0
  293. margin_bottom = 171.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. percent_visible = 1.0
  300. lines_skipped = 0
  301. max_lines_visible = -1
  302. [node name="HeroDescriptionLabel" type="Label" parent="PlayerSettings" index="6"]
  303. anchor_left = 0.0
  304. anchor_top = 0.0
  305. anchor_right = 0.0
  306. anchor_bottom = 0.0
  307. margin_left = 677.0
  308. margin_top = -5.0
  309. margin_right = 790.0
  310. margin_bottom = 9.0
  311. rect_pivot_offset = Vector2( 0, 0 )
  312. mouse_filter = 2
  313. mouse_default_cursor_shape = 0
  314. size_flags_horizontal = 1
  315. size_flags_vertical = 4
  316. text = "Hero Description:"
  317. percent_visible = 1.0
  318. lines_skipped = 0
  319. max_lines_visible = -1
  320. [node name="HeroDescription" type="RichTextLabel" parent="PlayerSettings" index="7"]
  321. anchor_left = 0.0
  322. anchor_top = 0.0
  323. anchor_right = 0.0
  324. anchor_bottom = 0.0
  325. margin_left = 675.0
  326. margin_top = 15.0
  327. margin_right = 918.0
  328. margin_bottom = 245.0
  329. rect_pivot_offset = Vector2( 0, 0 )
  330. rect_clip_content = true
  331. mouse_filter = 0
  332. mouse_default_cursor_shape = 0
  333. size_flags_horizontal = 1
  334. size_flags_vertical = 1
  335. bbcode_enabled = false
  336. bbcode_text = ""
  337. visible_characters = -1
  338. percent_visible = 1.0
  339. meta_underlined = true
  340. tab_size = 4
  341. text = ""
  342. scroll_active = true
  343. scroll_following = false
  344. selection_enabled = false
  345. override_selected_font_color = false
  346. [node name="HSeparator3" type="HSeparator" parent="." index="4"]
  347. anchor_left = 0.0
  348. anchor_top = 0.0
  349. anchor_right = 0.0
  350. anchor_bottom = 0.0
  351. margin_left = 19.0
  352. margin_top = 271.0
  353. margin_right = 645.0
  354. margin_bottom = 275.0
  355. rect_pivot_offset = Vector2( 0, 0 )
  356. mouse_filter = 0
  357. mouse_default_cursor_shape = 0
  358. size_flags_horizontal = 1
  359. size_flags_vertical = 1
  360. [node name="CustomGame" type="Control" parent="." index="5"]
  361. editor/display_folded = true
  362. anchor_left = 0.0
  363. anchor_top = 0.0
  364. anchor_right = 0.0
  365. anchor_bottom = 0.0
  366. margin_right = 40.0
  367. margin_bottom = 40.0
  368. rect_pivot_offset = Vector2( 0, 0 )
  369. mouse_filter = 0
  370. mouse_default_cursor_shape = 0
  371. size_flags_horizontal = 1
  372. size_flags_vertical = 1
  373. [node name="Label" type="Label" parent="CustomGame" index="0"]
  374. anchor_left = 0.0
  375. anchor_top = 0.0
  376. anchor_right = 0.0
  377. anchor_bottom = 0.0
  378. margin_left = 671.0
  379. margin_top = 275.0
  380. margin_right = 874.0
  381. margin_bottom = 289.0
  382. rect_pivot_offset = Vector2( 0, 0 )
  383. mouse_filter = 2
  384. mouse_default_cursor_shape = 0
  385. size_flags_horizontal = 1
  386. size_flags_vertical = 4
  387. text = "Or, host or join a custom game:"
  388. percent_visible = 1.0
  389. lines_skipped = 0
  390. max_lines_visible = -1
  391. [node name="Server" type="Button" parent="CustomGame" index="1"]
  392. anchor_left = 0.0
  393. anchor_top = 0.0
  394. anchor_right = 0.0
  395. anchor_bottom = 0.0
  396. margin_left = 665.0
  397. margin_top = 300.0
  398. margin_right = 752.0
  399. margin_bottom = 335.0
  400. rect_pivot_offset = Vector2( 0, 0 )
  401. focus_mode = 2
  402. mouse_filter = 0
  403. mouse_default_cursor_shape = 0
  404. size_flags_horizontal = 1
  405. size_flags_vertical = 1
  406. toggle_mode = false
  407. enabled_focus_mode = 2
  408. shortcut = null
  409. group = null
  410. text = "Server"
  411. flat = false
  412. align = 1
  413. [node name="LevelSelect" type="OptionButton" parent="CustomGame" index="2"]
  414. anchor_left = 0.0
  415. anchor_top = 0.0
  416. anchor_right = 0.0
  417. anchor_bottom = 0.0
  418. margin_left = 770.0
  419. margin_top = 300.0
  420. margin_right = 895.0
  421. margin_bottom = 335.0
  422. rect_pivot_offset = Vector2( 0, 0 )
  423. focus_mode = 2
  424. mouse_filter = 0
  425. mouse_default_cursor_shape = 0
  426. size_flags_horizontal = 1
  427. size_flags_vertical = 1
  428. toggle_mode = false
  429. action_mode = 0
  430. enabled_focus_mode = 2
  431. shortcut = null
  432. group = null
  433. text = "Platform map"
  434. flat = false
  435. align = 0
  436. selected = 0
  437. items = [ "Platform map", null, false, 0, null, "City-like thing", null, false, 1, null, "Slide", null, false, 2, null ]
  438. [node name="Client" type="Button" parent="CustomGame" index="3"]
  439. anchor_left = 0.0
  440. anchor_top = 0.0
  441. anchor_right = 0.0
  442. anchor_bottom = 0.0
  443. margin_left = 667.0
  444. margin_top = 354.0
  445. margin_right = 753.0
  446. margin_bottom = 393.0
  447. rect_pivot_offset = Vector2( 0, 0 )
  448. focus_mode = 2
  449. mouse_filter = 0
  450. mouse_default_cursor_shape = 0
  451. size_flags_horizontal = 1
  452. size_flags_vertical = 1
  453. toggle_mode = false
  454. enabled_focus_mode = 2
  455. shortcut = null
  456. group = null
  457. text = "Client"
  458. flat = false
  459. align = 1
  460. [node name="IPLabel" type="Label" parent="CustomGame" index="4"]
  461. anchor_left = 0.0
  462. anchor_top = 0.0
  463. anchor_right = 0.0
  464. anchor_bottom = 0.0
  465. margin_left = 673.0
  466. margin_top = 403.0
  467. margin_right = 698.0
  468. margin_bottom = 419.0
  469. rect_pivot_offset = Vector2( 0, 0 )
  470. mouse_filter = 2
  471. mouse_default_cursor_shape = 0
  472. size_flags_horizontal = 1
  473. size_flags_vertical = 4
  474. text = "IP:"
  475. percent_visible = 1.0
  476. lines_skipped = 0
  477. max_lines_visible = -1
  478. [node name="IP" type="TextEdit" parent="CustomGame" index="5"]
  479. anchor_left = 0.0
  480. anchor_top = 0.0
  481. anchor_right = 0.0
  482. anchor_bottom = 0.0
  483. margin_left = 707.0
  484. margin_top = 401.0
  485. margin_right = 851.0
  486. margin_bottom = 419.0
  487. rect_pivot_offset = Vector2( 0, 0 )
  488. focus_mode = 2
  489. mouse_filter = 0
  490. mouse_default_cursor_shape = 0
  491. size_flags_horizontal = 1
  492. size_flags_vertical = 1
  493. text = "127.0.0.1"
  494. readonly = false
  495. highlight_current_line = false
  496. syntax_highlighting = false
  497. show_line_numbers = false
  498. highlight_all_occurrences = false
  499. override_selected_font_color = false
  500. context_menu_enabled = true
  501. smooth_scrolling = false
  502. v_scroll_speed = 80.0
  503. hiding_enabled = 0
  504. wrap_lines = false
  505. caret_block_mode = false
  506. caret_blink = false
  507. caret_blink_speed = 0.65
  508. caret_moving_by_right_click = true
  509. [node name="Singleplayer" type="Button" parent="CustomGame" index="6"]
  510. anchor_left = 0.0
  511. anchor_top = 0.0
  512. anchor_right = 0.0
  513. anchor_bottom = 0.0
  514. margin_left = 668.0
  515. margin_top = 431.0
  516. margin_right = 760.0
  517. margin_bottom = 470.0
  518. rect_pivot_offset = Vector2( 0, 0 )
  519. focus_mode = 2
  520. mouse_filter = 0
  521. mouse_default_cursor_shape = 0
  522. size_flags_horizontal = 1
  523. size_flags_vertical = 1
  524. toggle_mode = false
  525. enabled_focus_mode = 2
  526. shortcut = null
  527. group = null
  528. text = "Singleplayer"
  529. flat = false
  530. align = 1
  531. [node name="VSeparator2" type="VSeparator" parent="." index="6"]
  532. anchor_left = 0.0
  533. anchor_top = 0.0
  534. anchor_right = 0.0
  535. anchor_bottom = 0.0
  536. margin_left = 653.0
  537. margin_top = 273.0
  538. margin_right = 657.0
  539. margin_bottom = 467.0
  540. rect_pivot_offset = Vector2( 0, 0 )
  541. mouse_filter = 0
  542. mouse_default_cursor_shape = 0
  543. size_flags_horizontal = 1
  544. size_flags_vertical = 1
  545. [node name="JoinedGameLobby" type="Control" parent="." index="7"]
  546. editor/display_folded = true
  547. visible = false
  548. anchor_left = 0.0
  549. anchor_top = 0.0
  550. anchor_right = 0.0
  551. anchor_bottom = 0.0
  552. margin_right = 40.0
  553. margin_bottom = 40.0
  554. rect_pivot_offset = Vector2( 0, 0 )
  555. mouse_filter = 0
  556. mouse_default_cursor_shape = 0
  557. size_flags_horizontal = 1
  558. size_flags_vertical = 1
  559. [node name="PlayerListLabel" type="Label" parent="JoinedGameLobby" index="0"]
  560. anchor_left = 0.0
  561. anchor_top = 0.0
  562. anchor_right = 0.0
  563. anchor_bottom = 0.0
  564. margin_left = 14.0
  565. margin_top = 287.0
  566. margin_right = 136.0
  567. margin_bottom = 301.0
  568. rect_pivot_offset = Vector2( 0, 0 )
  569. mouse_filter = 2
  570. mouse_default_cursor_shape = 0
  571. size_flags_horizontal = 1
  572. size_flags_vertical = 4
  573. text = "Connected Players:"
  574. percent_visible = 1.0
  575. lines_skipped = 0
  576. max_lines_visible = -1
  577. [node name="PlayerList" type="Label" parent="JoinedGameLobby" index="1"]
  578. anchor_left = 0.5
  579. anchor_top = 0.5
  580. anchor_right = 0.5
  581. anchor_bottom = 0.5
  582. margin_left = -7.0
  583. margin_top = 287.0
  584. margin_right = 639.0
  585. margin_bottom = 433.0
  586. rect_pivot_offset = Vector2( 0, 0 )
  587. mouse_filter = 2
  588. mouse_default_cursor_shape = 0
  589. size_flags_horizontal = 1
  590. size_flags_vertical = 4
  591. custom_fonts/font = SubResource( 4 )
  592. text = "Waiting for players to connect...."
  593. percent_visible = 1.0
  594. lines_skipped = 0
  595. max_lines_visible = -1
  596. [node name="StartGame" type="Button" parent="JoinedGameLobby" index="2"]
  597. anchor_left = 0.0
  598. anchor_top = 0.0
  599. anchor_right = 0.0
  600. anchor_bottom = 0.0
  601. margin_left = 13.0
  602. margin_top = 443.0
  603. margin_right = 135.0
  604. margin_bottom = 483.0
  605. rect_pivot_offset = Vector2( 0, 0 )
  606. focus_mode = 2
  607. mouse_filter = 0
  608. mouse_default_cursor_shape = 0
  609. size_flags_horizontal = 1
  610. size_flags_vertical = 1
  611. toggle_mode = false
  612. enabled_focus_mode = 2
  613. shortcut = null
  614. group = null
  615. text = "Start game"
  616. flat = false
  617. align = 1