freeftf/ui/lobby.gd
Patrick 2dce012535 0.1.0
Added a basic test map, options menu, bug fixes, and much more.
2025-08-08 10:57:42 +02:00

15 lines
398 B
GDScript

class_name HostGame
extends JoinGame
@onready var start_button: Button = $StartGameButton
func _ready() -> void:
Multiplayer.playerlist_label = $PlayerList
if multiplayer.is_server():
start_button.disabled = false
start_button.visible = true
Multiplayer.request_playerlist.rpc_id(1)
func _on_start_game_button_pressed() -> void:
Multiplayer.switch_scene.rpc("res://maps/test_map.tscn")