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.

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