feat: Implement comprehensive lobby system with main menu, room management, and loading screen.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user