Added a basic test map, options menu, bug fixes, and much more.
This commit is contained in:
Patrick 2025-08-08 10:57:42 +02:00
parent d72b5ac57b
commit 2dce012535
34 changed files with 1268 additions and 84 deletions

15
ui/lobby.gd Normal file
View file

@ -0,0 +1,15 @@
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")