feat: Implement a new portal door game mode with arena partitioning, dynamic connections, and multiplayer synchronization.

This commit is contained in:
Yogi Wiguna
2026-03-02 14:48:59 +08:00
parent 1425dff93e
commit 78634d6421
4 changed files with 55 additions and 27 deletions
+2 -1
View File
@@ -35,7 +35,8 @@ func _on_body_entered(body: Node3D):
if body.is_in_group("Players") or body.get("is_bot"):
var current_time = Time.get_ticks_msec()
if body.has_meta("last_portal_time"):
if current_time - body.get_meta("last_portal_time") < 1000:
# Reduce cooldown to 200ms to match manager logic and allow fast re-entry
if current_time - body.get_meta("last_portal_time") < 200:
return
body.set_meta("last_portal_time", current_time)