diff options
author | Travis Howell | 2006-09-30 10:45:10 +0000 |
---|---|---|
committer | Travis Howell | 2006-09-30 10:45:10 +0000 |
commit | deaa9e1ca11a717a652a5c8885b858a778942090 (patch) | |
tree | 14d1cac9c546e02f66033e1d582d1e817f9ab12e /engines | |
parent | 9b36168debda19e6f42f2e6f56d857e0862d4b0e (diff) | |
download | scummvm-rg350-deaa9e1ca11a717a652a5c8885b858a778942090.tar.gz scummvm-rg350-deaa9e1ca11a717a652a5c8885b858a778942090.tar.bz2 scummvm-rg350-deaa9e1ca11a717a652a5c8885b858a778942090.zip |
Add code to move pieces in jumble of PP
svn-id: r24034
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agos/agos.cpp | 3 | ||||
-rw-r--r-- | engines/agos/vga.cpp | 68 |
2 files changed, 55 insertions, 16 deletions
diff --git a/engines/agos/agos.cpp b/engines/agos/agos.cpp index dd60ff40dd..18341c5815 100644 --- a/engines/agos/agos.cpp +++ b/engines/agos/agos.cpp @@ -616,6 +616,7 @@ void AGOSEngine::setupGame() { _variableArray = (int16 *)calloc(_numVars, sizeof(int16)); _variableArray2 = (int16 *)calloc(_numVars, sizeof(int16)); + _variableArrayPtr = _variableArray; setupOpcodes(); @@ -632,8 +633,6 @@ void AGOSEngine::setupGame() { _noOverWrite = 0xFFFF; _stringIdLocalMin = 1; - - _variableArrayPtr = _variableArray; } AGOSEngine::~AGOSEngine() { diff --git a/engines/agos/vga.cpp b/engines/agos/vga.cpp index dbfa73229e..3f4b930c09 100644 --- a/engines/agos/vga.cpp +++ b/engines/agos/vga.cpp @@ -432,6 +432,10 @@ void AGOSEngine::vc3_loadSprite() { y = vcReadNextWord(); /* 6 */ palette = vcReadNextWord(); /* 8 */ + if (getGameType() == GType_PP && getBitFlag(100)) { + printf("StartAnOverlayAnim\n"); + } + if (isSpriteLoaded(vgaSpriteId, zoneNum)) return; @@ -1168,8 +1172,6 @@ void AGOSEngine::drawImages(VC10_state *state) { return; uint offs, offs2; - // Allow one section of Simon the Sorcerer 1 introduction to be displayed - // in lower half of screen if (getGameType() == GType_WW) { //if (_windowNum == 4 || _windowNum >= 10) { offs = state->x * 8; @@ -1179,9 +1181,11 @@ void AGOSEngine::drawImages(VC10_state *state) { // offs2 = (vlut[1] - _video_windows[17] + state->y); //} } else if (getGameType() == GType_SIMON1) { - if (_windowNum != 2 || _windowNum != 3) { - offs = ((vlut[0]) * 2 + state->x) * 8; - offs2 = (vlut[1] + state->y); + // Allow one section of Simon the Sorcerer 1 introduction to be displayed + // in lower half of screen + if ((getGameType() == GType_SIMON1) && (_subroutine == 2923 || _subroutine == 2926)) { + offs = state->x * 8; + offs2 = state->y; } else { offs = ((vlut[0] - _video_windows[16]) * 2 + state->x) * 8; offs2 = (vlut[1] - _video_windows[17] + state->y); @@ -2412,7 +2416,19 @@ void AGOSEngine::vc62_fastFadeOut() { } void AGOSEngine::vc63_fastFadeIn() { - if (getGameType() == GType_FF || getGameType() == GType_PP) { + if (getGameType() == GType_PP) { + _fastFadeInFlag = 256; + + if (getBitFlag(100)) { + printf("StartOverlayAnims\n"); + } + if (getBitFlag(103)) { + printf("NameAndTime\n"); + } + if (getBitFlag(104)) { + printf("HiScoreTable\n"); + } + } else if (getGameType() == GType_FF) { _fastFadeInFlag = 256; } else { _fastFadeInFlag = 208; @@ -2575,18 +2591,42 @@ void AGOSEngine::vc75_setScale() { } void AGOSEngine::vc76_setScaleXOffs() { - VgaSprite *vsp = findCurSprite(); + if (getGameType() == GType_PP && getBitFlag(120)) { + VgaSprite *vsp1, *vsp2; + uint16 old_file_1, tmp1, tmp2; + + old_file_1 = _vgaCurSpriteId; + + _vgaCurSpriteId = vcReadVar(vcReadNextWord()); + vsp1 = findCurSprite(); + _vgaCurSpriteId = vcReadVar(vcReadNextWord()); + vsp2 = findCurSprite(); + + tmp1 = vsp1->x; + tmp2 = vsp2->x; + vsp1->x = tmp2; + vsp2->x = tmp1; + tmp1 = vsp1->y; + tmp2 = vsp1->y; + vsp1->y = tmp2; + vsp2->y = tmp1; + + _vgaCurSpriteId = old_file_1; + _vcPtr += 2; + } else { + VgaSprite *vsp = findCurSprite(); - vsp->image = vcReadNextWord(); - int16 x = vcReadNextWord(); - uint16 var = vcReadNextWord(); + vsp->image = vcReadNextWord(); + int16 x = vcReadNextWord(); + uint16 var = vcReadNextWord(); - vsp->x += getScale(vsp->y, x); - _variableArrayPtr[var] = vsp->x; + vsp->x += getScale(vsp->y, x); + _variableArrayPtr[var] = vsp->x; - checkScrollX(x, vsp->x); + checkScrollX(x, vsp->x); - vsp->flags = kDFScaled; + vsp->flags = kDFScaled; + } } void AGOSEngine::vc77_setScaleYOffs() { |