feat: Implement the main game scene with core logic, manager initialization, multiplayer setup, and UI integration.
This commit is contained in:
@@ -60,7 +60,7 @@ func _attempt_throw():
|
||||
if enhanced_gridmap and "cell_size" in enhanced_gridmap:
|
||||
target_world_pos = Vector3(
|
||||
target.x * enhanced_gridmap.cell_size.x + enhanced_gridmap.cell_size.x / 2,
|
||||
0,
|
||||
enhanced_gridmap.cell_size.y,
|
||||
target.y * enhanced_gridmap.cell_size.z + enhanced_gridmap.cell_size.z / 2
|
||||
)
|
||||
|
||||
|
||||
+5
-5
@@ -451,11 +451,11 @@ func spawn_tiles_around(count: int = 4):
|
||||
else:
|
||||
item_id = rng.randi_range(11, 14)
|
||||
|
||||
if item_id != -1:
|
||||
var main = get_tree().get_root().get_node_or_null("Main")
|
||||
if main and can_rpc():
|
||||
main.rpc("sync_grid_item", pos.x, 1, pos.y, item_id)
|
||||
spawned += 1
|
||||
if item_id != -1:
|
||||
var main = get_tree().get_root().get_node_or_null("Main")
|
||||
if main and can_rpc():
|
||||
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):
|
||||
|
||||
Reference in New Issue
Block a user