feat(game): 게임 클리어 시 VictoryOverlay 추가

- VictoryOverlay 위젯 신규 생성
- GameSessionController에 isComplete 상태 추가
- 레벨 100 도달 시 승리 오버레이 표시
- 승리 후 명예의 전당 화면으로 이동
This commit is contained in:
JiWoong Sul
2025-12-31 18:52:18 +09:00
parent 9b668d80a4
commit a6d3c1e42f
4 changed files with 635 additions and 65 deletions

View File

@@ -627,9 +627,9 @@ class ProgressService {
/// Advances plot to next act and applies any act-level rewards.
/// Returns gameComplete=true if Act V was completed (game ends).
({GameState state, bool gameComplete}) completeAct(GameState state) {
// Act V 완료 시 (plotStageCount == 5) 게임 클리어
// plotStageCount: 0=Prologue, 1=Act I, 2=Act II, 3=Act III, 4=Act IV, 5=Act V
if (state.progress.plotStageCount >= 5) {
// Act V 완료 시 (plotStageCount == 6) 게임 클리어
// plotStageCount: 1=Prologue, 2=Act I, 3=Act II, 4=Act III, 5=Act IV, 6=Act V
if (state.progress.plotStageCount >= 6) {
// Act V 완료 - 게임 클리어!
// 히스토리만 업데이트하고 새 Act는 생성하지 않음
final updatedPlotHistory = [