feat: Initialize the main game scene with core managers, UI, networking, and a new message bar system.

This commit is contained in:
Yogi Wiguna
2026-02-12 16:49:37 +08:00
parent e620e69d73
commit cdf3f0bb1d
4 changed files with 175 additions and 3 deletions
+13
View File
@@ -295,6 +295,15 @@ func spawn_tiles_around(count: int = 4):
"""Spawns a mix of normal and special tiles in a radius."""
if not enhanced_gridmap: return
# Play throw animation
if not is_carried and not is_thrown:
play_animation("tekton_throw_tile")
# Queue idle after animation finishes (approx 1.0s)
get_tree().create_timer(1.0).timeout.connect(func():
if not is_moving and not is_carried and not is_thrown:
play_animation("tekton_idle")
)
var radius = 2
var rng = RandomNumberGenerator.new()
rng.randomize()
@@ -338,6 +347,10 @@ func spawn_tiles_around(count: int = 4):
main.rpc("sync_grid_item", pos.x, 1, pos.y, item_id)
spawned += 1
@rpc("call_local", "reliable")
func play_animation_rpc(anim_name: String):
play_animation(anim_name)
func play_animation(anim_name: String):
# Try specific user path first
var anim_player = get_node_or_null("Visuals/tekton/Armature/AnimationPlayer")