feat: Implement comprehensive lobby system with main menu, room management, and loading screen.

This commit is contained in:
Yogi Wiguna
2026-03-17 12:02:20 +08:00
parent b877f94e34
commit 6eb6dfa20d
5 changed files with 71 additions and 37 deletions
+10 -2
View File
@@ -1,4 +1,4 @@
extends Control
extends CanvasLayer
@export var tips: Array[String] = [
"Use your cards wisely!",
@@ -79,6 +79,14 @@ func change_scene(resource: PackedScene):
get_tree().change_scene_to_packed(resource)
# Update label to show we are initializing the game world
if scene_name_label:
scene_name_label.text = "Preparing Game..."
# Wait for assets (Tektons, Spawn Tiles) to initialize in the background
# This keeps the loading screen visible while main.gd runs its _ready() setup
await get_tree().create_timer(1.2).timeout
# Clean up self (Loading Screen)
queue_free()
@@ -86,7 +94,7 @@ func change_scene(resource: PackedScene):
func load_level(_path: String):
print("Starting load for: ", _path)
path = _path
show()
visible = true
content_control.show()
if scene_name_label: