Implement scenes

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
master
sigonasr2 2 years ago
parent 70aa5b155e
commit 61ce12a1db
  1. 68
      SeasonsOfLoneliness.cpp
  2. 2
      data.h

@ -55,6 +55,8 @@ enum GAMESTATE{
LATER_THAT_NIGHTWAIT,
LATER_THAT_NIGHTFADEOUT,
CUTSCENE_5, //Third rover repaired.
DISPLAY_BOOK,
DISPLAY_BOOK2,
};
namespace cutscene{
@ -86,6 +88,8 @@ namespace cutscene{
MAP_TRANSITION,
CHECK_COORDS_3,
STORY_REVIEW,
STORY_REVIEW2,
FINAL_REVIEW,
};
}
@ -123,6 +127,7 @@ namespace gameflag{
COLLECTED_SILICON_3,
CHECK_ROVER_3,
STORY_REVIEW,
NEXT_COORDS2,
};
}
@ -1417,6 +1422,15 @@ public:
ResetTerminal(STORY_TEXT6);
fadeIn();
}break;
case cutscene::STORY_REVIEW:{
GAME_STATE=DISPLAY_BOOK;
PlayCutscene(cutscene::STORY_REVIEW2);
}break;
case cutscene::STORY_REVIEW2:{
GAME_STATE=GAMEWORLD;
StartCutscene(cutscene::FINAL_REVIEW);
fadeIn();
}break;
}
}
@ -1438,6 +1452,10 @@ public:
case cutscene::MAP_TRANSITION:{
EndCutscene();
}break;
case cutscene::FINAL_REVIEW:{
DisplayMessageBox(45);
//EndCutscene();
}break;
}
}
@ -2420,6 +2438,7 @@ public:
}
}break;
case cutscene::STORY_REVIEW:{
if (!messageBoxVisible) {
if (!CUTSCENE_FLAGS[0]) {
if (MoveObjectTowardsPoint({19,2.5},CUTSCENE_OBJS[0],BOTH)) {
CUTSCENE_FLAGS[0]=true;
@ -2427,6 +2446,49 @@ public:
} else
if (!CUTSCENE_FLAGS[1]) {
DisplayMessageBox(38);
CUTSCENE_FLAGS[1]=true;
} else
if (!CUTSCENE_FLAGS[2]) {
CUTSCENE_OBJS[0]->anim=playerAnimLeft;
DisplayMessageBox(39);
CUTSCENE_FLAGS[2]=true;
} else {
fadeOut();
}
}
}break;
case cutscene::STORY_REVIEW2:{
if (CUTSCENE_TIMER>120) {
if (!CUTSCENE_FLAGS[0]) {
DisplayMessageBox(40);
CUTSCENE_FLAGS[0]=true;
} else
if (!CUTSCENE_FLAGS[1]) {
DisplayMessageBox(41);
CUTSCENE_FLAGS[1]=true;
} else
if (!CUTSCENE_FLAGS[2]) {
DisplayMessageBox(42);
CUTSCENE_FLAGS[2]=true;
} else
if (!CUTSCENE_FLAGS[3]) {
GAME_STATE=DISPLAY_BOOK2;
DisplayMessageBox(43);
CUTSCENE_FLAGS[3]=true;
} else
if (!CUTSCENE_FLAGS[4]) {
DisplayMessageBox(44);
CUTSCENE_FLAGS[4]=true;
} else
if (!CUTSCENE_FLAGS[5]) {
fadeOut();
CUTSCENE_FLAGS[5]=true;
}
}
}break;
case cutscene::FINAL_REVIEW:{
if (!messageBoxVisible) {
EndCutscene();
}
}break;
}
@ -2681,6 +2743,12 @@ public:
case LATER_THAT_NIGHTWAIT:{
DrawDecal({(float)(WIDTH/2-LATER_THAT_NIGHT_DECAL->sprite->width/2),(float)(HEIGHT/2-LATER_THAT_NIGHT_DECAL->sprite->height/2)},LATER_THAT_NIGHT_DECAL);
}break;
case DISPLAY_BOOK:{
DrawDecal({WIDTH/2-BOOK_DECAL->sprite->width/2,HEIGHT/2-BOOK_DECAL->sprite->height/2},BOOK_DECAL);
}break;
case DISPLAY_BOOK2:{
DrawDecal({WIDTH/2-BOOK2_DECAL->sprite->width/2,HEIGHT/2-BOOK2_DECAL->sprite->height/2},BOOK2_DECAL);
}break;
}
switch (BATTLE_STATE) {
case battle::PLAYER_SELECTION:{

@ -164,7 +164,7 @@ $PLAYER
(It was only a few weeks ago, that I started to realize...))",//38
R"(
$PLAYER
R.O.V.E.R., that hunk of metal sitting outside, was not from this planet. A curious writing on its nameplate had the words "S-VOYAGER 1999" from a group of "Americans")",//39
R.O.V.E.R., that hunk of metal sitting outside, was not from this planet. A curious writing on its nameplate had the words "S-VOYAGER 1999" from a group of "Earth inhabitants")",//39
R"(
$PLAYER
My weather reference books indicate that this group is indeed from a far away source. And the book probably is too. This just confirms it.)",//40

Loading…
Cancel
Save