Skip to content

Commit

Permalink
LILLIPUT: Implements Load Map opcode
Browse files Browse the repository at this point in the history
Loads graphics, fade out/in, display points
  • Loading branch information
sylvaintv authored and sev- committed Mar 28, 2018
1 parent 5caad72 commit 576f021
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 2 additions & 0 deletions engines/lilliput/lilliput.cpp
Expand Up @@ -145,6 +145,7 @@ LilliputEngine::LilliputEngine(OSystem *syst, const LilliputGameDescription *gd)
_byte16552 = 0;
_byte12FE4 = 0xFF;
_byte12FE3 = 0;
_byte16F08 = 0;

_rulesBuffer2PrevIndx = 0;
_word16EFA = 0;
Expand All @@ -157,6 +158,7 @@ LilliputEngine::LilliputEngine(OSystem *syst, const LilliputGameDescription *gd)
_word15AC2 = 0;
_word16213 = 0;
_word16215 = 0;
_word15AC2 = 0;
_displayStringIndex = 0;
_word1289D = 0;

Expand Down
2 changes: 2 additions & 0 deletions engines/lilliput/lilliput.h
Expand Up @@ -103,6 +103,8 @@ class LilliputEngine : public Engine {
byte _byte16552;
byte _byte12FE4;
byte _byte12FE3;
byte _byte16F08;
byte _byte15EAD;

byte _array147D1[3];
byte _buffer1[45056];
Expand Down
20 changes: 19 additions & 1 deletion engines/lilliput/script.cpp
Expand Up @@ -1826,8 +1826,26 @@ void LilliputScript::OC_sub183C6() {
warning("OC_sub183C6");
}
void LilliputScript::OC_loadFile_AERIAL_GFX() {
warning("OC_loadFile_AERIAL_GFX");
debugC(1, kDebugScript, "OC_loadFile_AERIAL_GFX()");

int var1 = _currScript->readUint16LE() & 0xff;
_vm->_byte15EAD = var1;

_byte12A09 = 1;
_word1881B = 0xFFFF;
OC_PaletteFadeOut();
_vm->_word15AC2 = 1;
_vm->displayVGAFile("AERIAL.GFX");
OC_PaletteFadeIn();

_vm->displayCharactersOnMap();
_vm->_byte16F08 = 1;
_vm->_keyboard_oldIndex = 0;
_vm->_keyboard_nextIndex = 0;

_vm->_byte12A09 = 0;
}

void LilliputScript::OC_sub17E22() {
warning("OC_sub17E22");
}
Expand Down

0 comments on commit 576f021

Please sign in to comment.