feat(lobby): 로비 카메라를 플레이어 추종(follow)으로 #57

Merged
gahusb merged 1 commits from feature/p15-lobby-camera-follow into main 2026-06-15 08:32:03 +09:00
Owner

요약

로비 맵에서 카메라가 플레이어를 따라 스크롤되도록 변경했습니다. 전투/런 맵은 기존 고정 framing을 유지합니다.

배경

MSW 카메라는 기본적으로 플레이어를 follow하는데, 전투맵용 MapCamera(gen-camera)가 ConfineCameraArea=true(맵 영역 고정)로 그 follow를 억제합니다. 로비는 map01 클론이라 이 고정 카메라를 상속받아 걸어도 화면이 안 움직였습니다.

변경 내용

  • tools/map/gen-lobby-map.mjs: 로비 맵 루트에서 script.MapCamera 제거(고정 framing 억제 해제).
  • tools/player/gen-lobby-npc.mjs: LobbyMobility가 로비 진입 시 플레이어 추종 카메라를 설정 — ConfineCameraArea=false(follow 핵심) + ScreenOffset=(0.5,0.5)(중앙) + ZoomRatio=90(전투맵과 동일 줌, 전환 위화감 최소) + CameraOffset=(0,0). (MapCamera와 공존하면 ConfineCameraArea true/false가 경쟁하므로 루트에서 MapCamera를 빼는 게 필수.)

검증 (메이커 플레이테스트)

  • 로비 스폰 → 우측 이동 시 플레이어 화면 중앙 유지 + 배경 스크롤(follow 동작), 검은 가장자리 없음.
  • 런 시작 → map01 ConfineCameraArea=true(고정 framing 복원, follow 누설 없음).
  • 로비 복귀 → ConfineCameraArea=false(follow 재적용).

재생성

node tools/map/gen-lobby-map.mjs
node tools/player/gen-lobby-npc.mjs

🤖 Generated with Claude Code

## 요약 로비 맵에서 카메라가 **플레이어를 따라 스크롤**되도록 변경했습니다. 전투/런 맵은 기존 고정 framing을 유지합니다. ## 배경 MSW 카메라는 기본적으로 플레이어를 follow하는데, 전투맵용 `MapCamera`(gen-camera)가 `ConfineCameraArea=true`(맵 영역 고정)로 그 follow를 억제합니다. 로비는 map01 클론이라 이 고정 카메라를 상속받아 걸어도 화면이 안 움직였습니다. ## 변경 내용 - `tools/map/gen-lobby-map.mjs`: 로비 맵 루트에서 `script.MapCamera` 제거(고정 framing 억제 해제). - `tools/player/gen-lobby-npc.mjs`: `LobbyMobility`가 로비 진입 시 플레이어 추종 카메라를 설정 — `ConfineCameraArea=false`(follow 핵심) + `ScreenOffset=(0.5,0.5)`(중앙) + `ZoomRatio=90`(전투맵과 동일 줌, 전환 위화감 최소) + `CameraOffset=(0,0)`. (MapCamera와 공존하면 ConfineCameraArea true/false가 경쟁하므로 루트에서 MapCamera를 빼는 게 필수.) ## 검증 (메이커 플레이테스트) - 로비 스폰 → 우측 이동 시 **플레이어 화면 중앙 유지 + 배경 스크롤**(follow 동작), 검은 가장자리 없음. - 런 시작 → map01 `ConfineCameraArea=true`(고정 framing 복원, follow 누설 없음). - 로비 복귀 → `ConfineCameraArea=false`(follow 재적용). ## 재생성 ``` node tools/map/gen-lobby-map.mjs node tools/player/gen-lobby-npc.mjs ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
gahusb added 1 commit 2026-06-15 08:07:29 +09:00
로비 루트에서 script.MapCamera 제거(고정 framing 억제 해제) + LobbyMobility가 진입 시
ConfineCameraArea=false·ScreenOffset(0.5,0.5)·Zoom 90으로 플레이어 추종 카메라 설정.
MSW 카메라는 기본 follow이고 ConfineCameraArea=true가 그걸 억제하므로 false가 핵심.
검증: 로비 우측 이동 시 플레이어 중앙 유지+배경 스크롤, 런 시작→map01 Confine=true 고정, 복귀→follow 복원(누설 없음).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
gahusb merged commit bc9bc78cef into main 2026-06-15 08:32:03 +09:00
gahusb deleted branch feature/p15-lobby-camera-follow 2026-06-15 08:32:07 +09:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gahusb/maplecontest#57