|
|
|
@ -1349,6 +1349,10 @@ void SeasonI::updateGame(){ |
|
|
|
|
} |
|
|
|
|
}break; |
|
|
|
|
case GameState::GAME_WORLD:{ |
|
|
|
|
if (!GetGameFlag(Flag::INTRO_COMPLETED)) { |
|
|
|
|
SetGameFlag(Flag::INTRO_COMPLETED,true); |
|
|
|
|
StartCutscene(CUTSCENES[CutsceneName::INTRO_CUTSCENE]); |
|
|
|
|
} |
|
|
|
|
if (PlayerCanMove()) { |
|
|
|
|
bool moved=false; |
|
|
|
|
vd2d movementComponents = {0,0}; |
|
|
|
@ -3315,6 +3319,9 @@ void SeasonI::drawGame(){ |
|
|
|
|
for (int i=0;i<PARTICLES.size();i++) { |
|
|
|
|
PARTICLES[i]->render(this); |
|
|
|
|
} |
|
|
|
|
if (GAME_FLAGS[(int)Flag::IS_NIGHTTIME]) { |
|
|
|
|
FillRectDecal({0,0},{WIDTH,HEIGHT},Pixel(0,0,64,128)); |
|
|
|
|
} |
|
|
|
|
FillRectDecal({0,0},{WIDTH,HEIGHT},Pixel(0,0,0,(int)CUTSCENE_FADE_VALUE)); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -3948,6 +3955,8 @@ void SeasonI::HandleCutscenes() { |
|
|
|
|
if (CUTSCENE_FADE_VALUE==255) { |
|
|
|
|
CurrentCutscene->AdvanceAction(); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
CurrentCutscene->AdvanceAction(); |
|
|
|
|
} |
|
|
|
|
}break; |
|
|
|
|
case ActionType::FADE_ASYNC:{ |
|
|
|
@ -3999,6 +4008,11 @@ void SeasonI::HandleCutscenes() { |
|
|
|
|
GAME_STATE=GameState::GAME_WORLD; |
|
|
|
|
CurrentCutscene->AdvanceAction(); |
|
|
|
|
}break; |
|
|
|
|
case ActionType::SET_FLAG:{ |
|
|
|
|
SetFlag*action=(SetFlag*)CurrentCutscene->GetAction(); |
|
|
|
|
SetGameFlag(action->GetFlag(),action->GetValue()); |
|
|
|
|
CurrentCutscene->AdvanceAction(); |
|
|
|
|
}break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for (int i=0;i<CUTSCENE_QUEUE.size();i++) { |
|
|
|
@ -5316,6 +5330,18 @@ void SeasonI::SetupCutscenes(){ |
|
|
|
|
액션 MoveCutsceneObject(1,{320,64},1),})}, |
|
|
|
|
{CutsceneName::TRANSFER_MAP_CUTSCENE,new MapTransitionCutscene()}, |
|
|
|
|
{CutsceneName::LOAD_FILE_CUTSCENE,new LoadFileCutscene()}, |
|
|
|
|
{CutsceneName::INTRO_CUTSCENE,new Cutscene({ |
|
|
|
|
액션 Fade(), |
|
|
|
|
액션 SetFlag(Flag::IS_NIGHTTIME,true), |
|
|
|
|
액션 PanCamera({64,512},BOTH,999), |
|
|
|
|
액션 FadeAsync(true), |
|
|
|
|
액션 PanCamera({64+128,512-128},BOTH,0.5), |
|
|
|
|
액션 Fade(), |
|
|
|
|
액션 PanCamera({360,256},BOTH,999), |
|
|
|
|
액션 FadeAsync(true), |
|
|
|
|
액션 PanCamera({360-128,256-128},BOTH,0.5), |
|
|
|
|
액션 Fade(), |
|
|
|
|
})}, |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|