feat: Implement player movement, rotation, and advanced push mechanics with new PlayerMovementManager, StopNGoManager, and player scene script.

This commit is contained in:
Yogi Wiguna
2026-02-23 12:55:02 +08:00
parent 92fd76f4b8
commit c8e7be8c6a
3 changed files with 15 additions and 13 deletions
+4 -5
View File
@@ -330,13 +330,12 @@ func _penalize_player(player_id: int):
var player_node = main.get_node_or_null(str(player_id))
if player_node:
# Don't reset mission progress!
# Just Drop All Tiles (which already exist on player)
# We now use the 'on_stop_phase_violation' RPC which scatters tiles around the player
# like they got attacked, instead of just dropping them in one pile.
if can_rpc():
player_node.rpc("drop_all_tiles")
player_node.rpc("on_stop_phase_violation")
# Also send message
NotificationManager.send_message(player_node, "Moved during STOP! Tiles Dropped!", NotificationManager.MessageType.WARNING)
# Notification is also handled inside on_stop_phase_violation on the player node
emit_signal("player_penalized", player_id)
func update_mission_progress(player_id: int, tile_id: int):