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.
💡 배경 및 개요
📃 작업내용
코인토스 (CoinToss)
useVideoCanvasPlayer훅과drawVideoFrameToCanvas유틸로 영상-Canvas 렌더링 처리useCoinTossAnimationEndHandler로 비디오 종료 후 처리 로직 관리useCoinTossController로 API 요청, 폼 상태, 애니메이션 상태를 통합 관리CoinTossAnimation컴포넌트로 Canvas+Video UI 렌더링 분리CoinTossPage는 Form 조립과 UI 배치만 담당야바위 (Yavarwee)
useCanvasAnimation,drawCups,drawBall등 분리하여 관리useYavarweeCups,useYavarweeBall훅으로 cups와 ball 상태 분리useYavarweeTimer훅으로 선택 제한 타이머 관리updateCupsAndBall유틸로 컵/공 상태 일괄 업데이트StatusText,SelectingTimerProgress,IdleOverlay,RoundOverlay등으로 UI 분리YavarweeAnimation은 오직 조립(responsible only for composition)🔀 변경사항
/entities/mini-game/coin-toss//entities/mini-game/yavarwee//shared/types/mini-game/canvas/,hooks/,ui/,utils/디렉토리 세분화 및 역할별 코드 분리🎸 기타
야바위 페이지를 리팩토링 하면서 컵을 셔플 하는 로직을 변경 하였지만 안정성 혹은 애니매이션과의 싱크가 맞지 않는 상황이 우려되어 컵을 섞는 로직을 롤백함