summary refs log tree commit diff stats
path: root/racing/lobby.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-02-11 12:43:31 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2024-02-11 12:43:31 -0500
commit2c7590286c26c44a7cdd80a72c782f253ba740de (patch)
tree2fbb61c36373b8f1f213f1c89e20440a3cf51cd9 /racing/lobby.gd
parent56b1b65232539860d68a5ff03eb43bd99c11f52b (diff)
downloadlingo-race-2c7590286c26c44a7cdd80a72c782f253ba740de.tar.gz
lingo-race-2c7590286c26c44a7cdd80a72c782f253ba740de.tar.bz2
lingo-race-2c7590286c26c44a7cdd80a72c782f253ba740de.zip
Shrink font for WBQW
Diffstat (limited to 'racing/lobby.gd')
-rw-r--r--racing/lobby.gd18
1 files changed, 3 insertions, 15 deletions
diff --git a/racing/lobby.gd b/racing/lobby.gd index d326098..3a04460 100644 --- a/racing/lobby.gd +++ b/racing/lobby.gd
@@ -247,16 +247,10 @@ func _read_p2p_packet() -> void:
247 Steam.P2P_SEND_RELIABLE_WITH_BUFFERING, 247 Steam.P2P_SEND_RELIABLE_WITH_BUFFERING,
248 false 248 false
249 ) 249 )
250 if "start_x" in data: 250 if "start_name" in data:
251 race_manager.level = data["level"] 251 race_manager.level = data["level"]
252 race_manager.start_pos = { 252 race_manager.start_pos = router.get_area(data["level"], data["start_name"])
253 "title": data["start_name"], 253 race_manager.end_pos = router.get_area(data["level"], data["end_name"])
254 "pos": [int(data["start_x"]), int(data["start_y"]), int(data["start_z"])]
255 }
256 race_manager.end_pos = {
257 "title": data["end_name"],
258 "pos": [int(data["end_x"]), int(data["end_y"]), int(data["end_z"])]
259 }
260 254
261 is_starting = true 255 is_starting = true
262 _start_game() 256 _start_game()
@@ -336,13 +330,7 @@ func _main_button_pressed():
336 { 330 {
337 "level": route[0], 331 "level": route[0],
338 "start_name": start_pos["title"], 332 "start_name": start_pos["title"],
339 "start_x": str(start_pos["pos"][0]),
340 "start_y": str(start_pos["pos"][1]),
341 "start_z": str(start_pos["pos"][2]),
342 "end_name": end_pos["title"], 333 "end_name": end_pos["title"],
343 "end_x": str(end_pos["pos"][0]),
344 "end_y": str(end_pos["pos"][1]),
345 "end_z": str(end_pos["pos"][2]),
346 }, 334 },
347 RECIPIENT_BROADCAST_ALL, 335 RECIPIENT_BROADCAST_ALL,
348 Steam.P2P_SEND_RELIABLE, 336 Steam.P2P_SEND_RELIABLE,