feat: implement Stop N Go arena, animation system, and lobby manager features

This commit is contained in:
Yogi Wiguna
2026-03-30 15:06:21 +08:00
parent 52d9b4bffb
commit 42e96a7ed9
45 changed files with 1110 additions and 79 deletions
+17
View File
@@ -350,6 +350,18 @@ func _ready():
if LobbyManager.get_randomize_spawn() and not spawn_point_selected:
visible = false
@onready var floor_spawn_bot: AnimatedSprite3D = $floor_spawn_bot
@onready var floor_spawn_top: AnimatedSprite3D = $floor_spawn_top
func _input(event: InputEvent) -> void:
if event.is_action_pressed("grab_item"):
floor_spawn_bot.play("floor_spawn_bot")
floor_spawn_top.play("floor_spawn_top")
func play_floor_spawn():
floor_spawn_bot.play("floor_spawn_bot")
floor_spawn_top.play("floor_spawn_top")
func _init_managers():
movement_manager = load("res://scripts/managers/player_movement_manager.gd").new()
movement_manager.name = "MovementManager"
@@ -549,6 +561,11 @@ func sync_special_animation() -> void:
"""Sync special ability animation across network."""
play_special_animation()
@rpc("any_peer", "call_local", "reliable")
func sync_floor_spawn_animation() -> void:
"""Sync floor spawn animation across network."""
play_floor_spawn()
# =============================================================================
# Skill VFX
# =============================================================================