feat: Initialize the main game scene with core managers, UI, networking, and a new message bar system.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user