Intro cutscene

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
master
sigonasr2 2 years ago
parent 3c4219336c
commit 2cb5c87ef0
  1. BIN
      C++ProjectTemplate
  2. 12
      main.cpp
  3. 2
      test/test.h

Binary file not shown.

@ -1994,8 +1994,18 @@ void SeasonI::keyUpdates() {
switch (GAME_STATE) { switch (GAME_STATE) {
case GameState::FILE_LOAD_SELECT:{ case GameState::FILE_LOAD_SELECT:{
CursorControl(SAVE_FILE_CURSOR,3); CursorControl(SAVE_FILE_CURSOR,3);
if (ACTIONKEYPRESSED&&SAVE_FILE_DATA[SAVE_FILE_CURSOR].chapterNumber!=-1) { if (ACTIONKEYPRESSED) {
if (SAVE_FILE_DATA[SAVE_FILE_CURSOR].chapterNumber!=-1) {
StartCutscene(CUTSCENES[CutsceneName::LOAD_FILE_CUTSCENE]); StartCutscene(CUTSCENES[CutsceneName::LOAD_FILE_CUTSCENE]);
} else {
//This is a new game.
GAME_STATE=GameState::GAME_WORLD;
MapTransitionCutscene*scene=(MapTransitionCutscene*)CUTSCENES[CutsceneName::TRANSFER_MAP_CUTSCENE];
std::vector<CutsceneAction*>actions=scene->GetActions();
class LoadMap*mapLoadAction=(class LoadMap*)actions[1];
mapLoadAction->SetTargetMap(MAPS[MapName::ONETT]);
StartCutscene(CUTSCENES[CutsceneName::TRANSFER_MAP_CUTSCENE]);
}
} }
}break; }break;
case GameState::TILE_SELECT:{ case GameState::TILE_SELECT:{

@ -1 +1 @@
#define TEST_SUITE

Loading…
Cancel
Save