Repository navigation
feat: 기울기 중력 + 흔들기 임펄스 (Day 2 후반) - #9
Merged
Merged
Conversation
- deviceorientation → 중력 벡터가 기울기를 따라간다 (45도에서 최대) - devicemotion 가속도(중력 제외) 임계값 초과 시 전체 랜덤 임펄스, 쿨다운 500ms - iOS 권한: 글자 5개 쌓은 뒤 '기울여서 무너뜨리기' 힌트 버튼 탭으로 요청 (PRD §4.3 — 첫 진입 요청 금지, 거부해도 나머지 전부 동작) - 모션 상수는 constants.ts 의 MOTION 에 집약 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013jzX6PJvGgLYvdvXBBRS4m
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
목표 (PRD §4.3 — 폰 자체가 컨트롤러)
권한 처리 (PRD 규칙 그대로)
변경 내용 (파일 4개)
src/lib/motion.ts(신규) — deviceorientation/devicemotion 처리 + iOS 권한 플로우src/lib/stage.ts—setGravity(x, y),shake()API 추가src/lib/constants.ts—MOTION상수 (기울기 감도, 흔들기 임계값·킥 세기·쿨다운)src/pages/index.astro— 힌트 버튼 + 글자 수 카운트 연결확인 방법 (실기기)
튜닝 포인트: 기울기가 둔하면
tiltFullAtDeg↓, 흔들기가 안 먹으면shakeAccelThreshold↓, 너무 약하면shakeKickPx↑.Generated by Claude Code