TWINE: use delta time to show the credits from original game

also added the other actions found in the disassembly that the original game
did during the waiting loop
This commit is contained in:
Martin Gerhardy 2021-02-06 13:25:01 +01:00
parent 7c3d226778
commit 986aa94154
2 changed files with 11 additions and 1 deletions

View File

@ -558,8 +558,17 @@ int32 Menu::processMenu(MenuSettings *menuSettings, bool showCredits) {
}
startMillis = loopMillis;
}
if (showCredits && loopMillis - startMillis > 15000) {
if (showCredits && loopMillis - startMillis > 11650) {
_engine->_menuOptions->showCredits();
// TODO the original game also performs these actions:
// play FLA_DRAGON3 fla
// display RESSHQR_INTROSCREEN1IMG
// display RESSHQR_INTROSCREEN2IMG
// display RESSHQR_INTROSCREEN3IMG
// play FLA_BATEAU fla
// if version == EUROPE_VERSION display RESSHQR_LBAIMG else display RESSHQR_RELLENTIMG
// display adeline logo
// pressing any key during these actions will abort everything and return to the menu
startMillis = _engine->_system->getMillis();
_engine->_screens->loadMenuImage(false);
}

View File

@ -75,6 +75,7 @@ namespace TwinE {
#define FLA_DRAGON3 "dragon3"
#define FLA_INTROD "introd"
#define FLA_THEEND "the_end"
#define FLA_BATEAU "bateau"
#define FILE3DHQR_HERONORMAL 0
#define FILE3DHQR_HEROATHLETIC 1