This commit is contained in:
Yogi Wiguna
2026-03-17 17:38:30 +08:00
parent 1b8e411657
commit efdd8f4969
32 changed files with 320 additions and 22 deletions
+12 -2
View File
@@ -238,19 +238,29 @@ func _on_server_option_selected(index: int) -> void:
if server_ip_input: server_ip_input.visible = false
NakamaManager.set_server("localhost")
LobbyManager.is_lan_mode = false
connection_status.text = "Mode: Local Testing (Nakama)"
elif index == 1:
# Nakama Remote
if server_ip_input: server_ip_input.visible = true
if server_ip_input:
server_ip_input.visible = true
server_ip_input.placeholder_text = "IP (100.x) or Tailscale Funnel URL..."
if server_ip_input: NakamaManager.set_server(server_ip_input.text)
LobbyManager.is_lan_mode = false
connection_status.text = "Mode: Online (Nakama Remote)"
else:
# LAN Direct
if server_ip_input: server_ip_input.visible = false
LobbyManager.is_lan_mode = true
connection_status.text = "Mode: LAN Direct (No Server)"
func _on_server_ip_submitted(new_text: String) -> void:
if server_option and server_option.selected == 1:
NakamaManager.set_server(new_text.strip_edges())
var host = new_text.strip_edges()
NakamaManager.set_server(host)
if host.ends_with(".ts.net"):
connection_status.text = "Using Tailscale Funnel: " + host
else:
connection_status.text = "Server IP updated: " + host
func _setup_game_modes() -> void:
if not game_mode_option: return
+2
View File
@@ -2099,6 +2099,7 @@ func sync_grab_tekton(tekton_path: NodePath):
if is_attack_mode:
is_attack_mode = false
SfxManager.play("pick_up_tekton_roaming")
print("[Player %s] Grabbed Tekton %s" % [name, tekton.name])
func throw_tekton():
@@ -2333,6 +2334,7 @@ func sync_knock_tekton(tekton_path: NodePath):
# Intensity 2.0 for knock (drops 200% tiles) + Shrink/Recover
# Use on_thrown_landing to trigger shrink animation and floor freeze
tekton.on_thrown_landing(self , 2.0)
SfxManager.play("attack_mode")
print("[Player %s] Knocked Tekton %s" % [name, tekton.name])
# Visual feedback (Juice)