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.

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