feat: Introduce player character with input management and gridmap interaction visuals.
This commit is contained in:
+7
-4
@@ -754,7 +754,7 @@ func _apply_tint_recursive(node: Node, color: Color):
|
||||
|
||||
var immunity_timer: float = 0.0
|
||||
var tekton_carry_timer: float = 0.0
|
||||
const MAX_TEKTON_CARRY_TIME: float = 4.0
|
||||
const MAX_TEKTON_CARRY_TIME: float = 3.0
|
||||
|
||||
|
||||
@rpc("any_peer", "call_local")
|
||||
@@ -1188,13 +1188,16 @@ func _physics_process(delta):
|
||||
if can_rpc():
|
||||
rpc("remote_set_position", current_world_pos, Time.get_ticks_msec())
|
||||
|
||||
# Tekton Auto-Drop Timer (3s Rule)
|
||||
# Tekton Auto-Reward Timer (3s Rule)
|
||||
if is_multiplayer_authority() and is_carrying_tekton:
|
||||
tekton_carry_timer += delta
|
||||
if tekton_carry_timer >= MAX_TEKTON_CARRY_TIME:
|
||||
tekton_carry_timer = 0.0
|
||||
print("[Player %s] 3-second rule: Auto-dropping Tekton" % name)
|
||||
drop_tekton()
|
||||
print("[Player %s] 3-second rule: Auto-spawning reward tiles" % name)
|
||||
if powerup_manager and powerup_manager.has_method("spawn_boost_reward"):
|
||||
powerup_manager.spawn_boost_reward()
|
||||
else:
|
||||
drop_tekton()
|
||||
elif not is_carrying_tekton:
|
||||
tekton_carry_timer = 0.0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user