feat: Implement player movement manager with grid-based movement, rotation, and advanced 'SUPER PUSH' mechanics.

This commit is contained in:
Yogi Wiguna
2026-02-06 13:59:18 +08:00
parent 10aa309148
commit 263af68596
3 changed files with 12 additions and 8 deletions
+6 -1
View File
@@ -151,7 +151,12 @@ func try_push(target_pos: Vector2i, direction: Vector2i) -> bool:
if main:
var gcm = main.get_node_or_null("GoalsCycleManager")
if gcm:
gcm.rpc("request_add_score", 200)
if multiplayer.is_server():
# Server/Bot: Directly add score to specific player ID
gcm.add_score(player.name.to_int(), 200)
else:
# Client: Request score add (sender ID used)
gcm.rpc("request_add_score", 200)
NotificationManager.send_message(player, "Successful Attack! +200 Pts", NotificationManager.MessageType.GOAL)
# 5. Attack Mode Persistence