|
|
@ -55,6 +55,8 @@ enum GAMESTATE{ |
|
|
|
LATER_THAT_NIGHTWAIT, |
|
|
|
LATER_THAT_NIGHTWAIT, |
|
|
|
LATER_THAT_NIGHTFADEOUT, |
|
|
|
LATER_THAT_NIGHTFADEOUT, |
|
|
|
CUTSCENE_5, //Third rover repaired.
|
|
|
|
CUTSCENE_5, //Third rover repaired.
|
|
|
|
|
|
|
|
DISPLAY_BOOK, |
|
|
|
|
|
|
|
DISPLAY_BOOK2, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
namespace cutscene{ |
|
|
|
namespace cutscene{ |
|
|
@ -86,6 +88,8 @@ namespace cutscene{ |
|
|
|
MAP_TRANSITION, |
|
|
|
MAP_TRANSITION, |
|
|
|
CHECK_COORDS_3, |
|
|
|
CHECK_COORDS_3, |
|
|
|
STORY_REVIEW, |
|
|
|
STORY_REVIEW, |
|
|
|
|
|
|
|
STORY_REVIEW2, |
|
|
|
|
|
|
|
FINAL_REVIEW, |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -123,6 +127,7 @@ namespace gameflag{ |
|
|
|
COLLECTED_SILICON_3, |
|
|
|
COLLECTED_SILICON_3, |
|
|
|
CHECK_ROVER_3, |
|
|
|
CHECK_ROVER_3, |
|
|
|
STORY_REVIEW, |
|
|
|
STORY_REVIEW, |
|
|
|
|
|
|
|
NEXT_COORDS2, |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1417,6 +1422,15 @@ public: |
|
|
|
ResetTerminal(STORY_TEXT6); |
|
|
|
ResetTerminal(STORY_TEXT6); |
|
|
|
fadeIn(); |
|
|
|
fadeIn(); |
|
|
|
}break; |
|
|
|
}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:{ |
|
|
|
case cutscene::MAP_TRANSITION:{ |
|
|
|
EndCutscene(); |
|
|
|
EndCutscene(); |
|
|
|
}break; |
|
|
|
}break; |
|
|
|
|
|
|
|
case cutscene::FINAL_REVIEW:{ |
|
|
|
|
|
|
|
DisplayMessageBox(45); |
|
|
|
|
|
|
|
//EndCutscene();
|
|
|
|
|
|
|
|
}break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -2420,6 +2438,7 @@ public: |
|
|
|
} |
|
|
|
} |
|
|
|
}break; |
|
|
|
}break; |
|
|
|
case cutscene::STORY_REVIEW:{ |
|
|
|
case cutscene::STORY_REVIEW:{ |
|
|
|
|
|
|
|
if (!messageBoxVisible) { |
|
|
|
if (!CUTSCENE_FLAGS[0]) { |
|
|
|
if (!CUTSCENE_FLAGS[0]) { |
|
|
|
if (MoveObjectTowardsPoint({19,2.5},CUTSCENE_OBJS[0],BOTH)) { |
|
|
|
if (MoveObjectTowardsPoint({19,2.5},CUTSCENE_OBJS[0],BOTH)) { |
|
|
|
CUTSCENE_FLAGS[0]=true; |
|
|
|
CUTSCENE_FLAGS[0]=true; |
|
|
@ -2427,6 +2446,49 @@ public: |
|
|
|
} else |
|
|
|
} else |
|
|
|
if (!CUTSCENE_FLAGS[1]) { |
|
|
|
if (!CUTSCENE_FLAGS[1]) { |
|
|
|
DisplayMessageBox(38); |
|
|
|
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; |
|
|
|
}break; |
|
|
|
} |
|
|
|
} |
|
|
@ -2681,6 +2743,12 @@ public: |
|
|
|
case LATER_THAT_NIGHTWAIT:{ |
|
|
|
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); |
|
|
|
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; |
|
|
|
}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) { |
|
|
|
switch (BATTLE_STATE) { |
|
|
|
case battle::PLAYER_SELECTION:{ |
|
|
|
case battle::PLAYER_SELECTION:{ |
|
|
|