|
|
|
@@ -187,10 +187,13 @@ func _setup_environment() -> void:
|
|
|
|
|
# ── Camera ────────────────────────────────────────────────────────────────────
|
|
|
|
|
|
|
|
|
|
func _apply_camera() -> void:
|
|
|
|
|
_camera_rig.position = _cam_pivot
|
|
|
|
|
var pitch_rad := deg_to_rad(_cam_pitch)
|
|
|
|
|
_camera_rig.position = _cam_pivot
|
|
|
|
|
_camera_rig.rotation_degrees = Vector3(0.0, _cam_yaw, 0.0)
|
|
|
|
|
_camera.position = Vector3(0.0, 0.0, _cam_distance)
|
|
|
|
|
_camera.rotation_degrees = Vector3(-_cam_pitch, 0.0, 0.0)
|
|
|
|
|
_camera.position = Vector3(0.0,
|
|
|
|
|
_cam_distance * sin(pitch_rad),
|
|
|
|
|
_cam_distance * cos(pitch_rad))
|
|
|
|
|
_camera.rotation_degrees = Vector3(-_cam_pitch, 0.0, 0.0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func _zoom(delta: float) -> void:
|
|
|
|
@@ -1149,11 +1152,16 @@ func _update_hud(state: Dictionary) -> void:
|
|
|
|
|
if phase == "Placement":
|
|
|
|
|
var my_arch : Dictionary = my.get("archSpirit", {})
|
|
|
|
|
if my_arch.is_empty() or my_arch.get("position") == null:
|
|
|
|
|
_phase_lbl.text = "Phase: Placement — click a tile to place your ArchSpirit"
|
|
|
|
|
if _mode != Mode.PLACEMENT:
|
|
|
|
|
_set_mode(Mode.PLACEMENT)
|
|
|
|
|
_clear_highlights()
|
|
|
|
|
_highlight_tiles(_valid_placement_tiles(), HI_GREEN)
|
|
|
|
|
if is_mine:
|
|
|
|
|
_phase_lbl.text = "Phase: Placement — click a tile to place your ArchSpirit"
|
|
|
|
|
if _mode != Mode.PLACEMENT:
|
|
|
|
|
_set_mode(Mode.PLACEMENT)
|
|
|
|
|
_clear_highlights()
|
|
|
|
|
_highlight_tiles(_valid_placement_tiles(), HI_GREEN)
|
|
|
|
|
else:
|
|
|
|
|
_phase_lbl.text = "Phase: Placement — waiting for opponent…"
|
|
|
|
|
if _mode == Mode.PLACEMENT:
|
|
|
|
|
_set_mode(Mode.NONE)
|
|
|
|
|
|
|
|
|
|
# ── Discard viewer ────────────────────────────────────────────────────────────
|
|
|
|
|
|
|
|
|
|