diff options
author | Strangerke | 2014-04-05 23:37:48 +0200 |
---|---|---|
committer | Strangerke | 2014-04-05 23:37:48 +0200 |
commit | ae6e19d7fc5b68611b33cdc6aabfce9379a561a2 (patch) | |
tree | b00c00a32bb664db48ad39f2a9c6514fbcb77583 /engines/mads | |
parent | c117e59009890d15e3bec65564ad0ac1f728dc79 (diff) | |
download | scummvm-rg350-ae6e19d7fc5b68611b33cdc6aabfce9379a561a2.tar.gz scummvm-rg350-ae6e19d7fc5b68611b33cdc6aabfce9379a561a2.tar.bz2 scummvm-rg350-ae6e19d7fc5b68611b33cdc6aabfce9379a561a2.zip |
MADS: Some rework in scene group 1 and 8
Diffstat (limited to 'engines/mads')
-rw-r--r-- | engines/mads/nebular/nebular_scenes1.cpp | 57 | ||||
-rw-r--r-- | engines/mads/nebular/nebular_scenes8.cpp | 31 |
2 files changed, 31 insertions, 57 deletions
diff --git a/engines/mads/nebular/nebular_scenes1.cpp b/engines/mads/nebular/nebular_scenes1.cpp index 6d63a564ab..7cc4fb36fb 100644 --- a/engines/mads/nebular/nebular_scenes1.cpp +++ b/engines/mads/nebular/nebular_scenes1.cpp @@ -140,56 +140,43 @@ void Scene103::enter() { _globals._spriteIndexes[12] = _scene->_sprites.addSprites("*RXMBD_2"); _globals._spriteIndexes[13] = _scene->_sprites.addSprites("*RXMRD_3"); - _globals._spriteIndexes[15] = _scene->_sequences.addSpriteCycle( - _globals._spriteIndexes[0], false, 7, 0, 1, 0); - _globals._spriteIndexes[16] = _scene->_sequences.addSpriteCycle( - _globals._spriteIndexes[1], false, 6, 0, 2, 0); + _globals._spriteIndexes[15] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[0], false, 7, 0, 1, 0); + _globals._spriteIndexes[16] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[1], false, 6, 0, 2, 0); _scene->_sequences.setDepth(_globals._spriteIndexes[16], 0); - _globals._spriteIndexes[17] = _scene->_sequences.addSpriteCycle( - _globals._spriteIndexes[2], false, 6, 0, 0, 25); + _globals._spriteIndexes[17] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[2], false, 6, 0, 0, 25); _scene->_sequences.addSubEntry(_globals._spriteIndexes[17], SM_FRAME_INDEX, 2, 72); - _globals._spriteIndexes[18] = _scene->_sequences.addSpriteCycle( - _globals._spriteIndexes[3], false, 6, 0, 1, 37); + _globals._spriteIndexes[18] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[3], false, 6, 0, 1, 37); _scene->_sequences.addSubEntry(_globals._spriteIndexes[18], SM_FRAME_INDEX, 2, 73); - _globals._spriteIndexes[23] = _scene->_sequences.addSpriteCycle( - _globals._spriteIndexes[8], false, 8); - _globals._spriteIndexes[22] = _scene->_sequences.addSpriteCycle( - _globals._spriteIndexes[7], false, 6); - _globals._spriteIndexes[19] = _scene->_sequences.addSpriteCycle( - _globals._spriteIndexes[4], false, 6); - _globals._spriteIndexes[20] = _scene->_sequences.addSpriteCycle( - _globals._spriteIndexes[5], false, 6); + _globals._spriteIndexes[23] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[8], false, 8); + _globals._spriteIndexes[22] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[7], false, 6); + _globals._spriteIndexes[19] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[4], false, 6); + _globals._spriteIndexes[20] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[5], false, 6); - if (_game._objects.isInRoom(OBJ_TIMER_MODULE)) { + if (_game._objects.isInRoom(OBJ_TIMER_MODULE)) _vm->_game->_scene._hotspots.activate(371, false); - } else { - _globals._spriteIndexes[26] = _scene->_sequences.addSpriteCycle( - _globals._spriteIndexes[11], false, 6); - } + else + _globals._spriteIndexes[26] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[11], false, 6); - if (_game._objects.isInRoom(OBJ_REBREATHER)) { + if (_game._objects.isInRoom(OBJ_REBREATHER)) _vm->_game->_scene._hotspots.activate(289, false); - } else { - _globals._spriteIndexes[25] = _scene->_sequences.addSpriteCycle( - _globals._spriteIndexes[10], false, 6); - } + else + _globals._spriteIndexes[25] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[10], false, 6); if (_globals[kTurkeyExploded]) { - _globals._spriteIndexes[24] = _scene->_sequences.addSpriteCycle( - _globals._spriteIndexes[9], false, 6); + _globals._spriteIndexes[24] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[9], false, 6); _scene->_sequences.setAnimRange(_globals._spriteIndexes[24], -2, -2); _scene->_hotspots.activate(362, false); } if (_scene->_priorSceneId != -2) _game._player._playerPos = Common::Point(237, 74); + if (_scene->_priorSceneId == 102) { _game._player._stepEnabled = false; - _globals._spriteIndexes[21] = _scene->_sequences.addReverseSpriteCycle( - _globals._spriteIndexes[6], false, 6, 1, 0, 0); + _globals._spriteIndexes[21] = _scene->_sequences.addReverseSpriteCycle(_globals._spriteIndexes[6], false, 6, 1, 0, 0); _scene->_sequences.addSubEntry(_globals._spriteIndexes[21], SM_0, 0, 70); } @@ -197,8 +184,7 @@ void Scene103::enter() { _vm->_game->loadQuoteSet(70, 51, 71, 7, 73, 0); if (!_game._visitedScenes._sceneRevisited) { - int msgIndex = _scene->_kernelMessages.add(Common::Point(0, 0), 0x1110, - 34, 0, 120, _game.getQuote(70)); + int msgIndex = _scene->_kernelMessages.add(Common::Point(0, 0), 0x1110, 34, 0, 120, _game.getQuote(70)); _scene->_kernelMessages.setQuoted(msgIndex, 4, true); } @@ -262,8 +248,7 @@ void Scene103::actions() { } else if (_action.isAction(395, 110)) { switch (_vm->_game->_trigger) { case 0: - _globals._spriteIndexes[21] = _scene->_sequences.addSpriteCycle( - _globals._spriteIndexes[6], false, 6, 1); + _globals._spriteIndexes[21] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[6], false, 6, 1); _scene->_sequences.addSubEntry(_globals._spriteIndexes[21], SM_0, 0, 1); _game._player._stepEnabled = false; _vm->_sound->command(20); @@ -348,9 +333,7 @@ void Scene103::actions() { _vm->_sound->command(31); if (_vm->_game->_fx < 2) { - _globals._spriteIndexes[24] = _scene->_sequences.addSpriteCycle( - _globals._spriteIndexes[9], false, 6, - _vm->_game->_trigger < 1 ? 1 : 0); + _globals._spriteIndexes[24] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[9], false, 6, _vm->_game->_trigger < 1 ? 1 : 0); if (_vm->_game->_trigger) { _scene->_sequences.setAnimRange(_globals._spriteIndexes[24], -1, 0); Common::String msg = _game.getQuote(51); diff --git a/engines/mads/nebular/nebular_scenes8.cpp b/engines/mads/nebular/nebular_scenes8.cpp index f8eeb3748a..6fee0cb973 100644 --- a/engines/mads/nebular/nebular_scenes8.cpp +++ b/engines/mads/nebular/nebular_scenes8.cpp @@ -105,30 +105,22 @@ void Scene804::enter() { if (_globals[kInSpace]) { if (_globals[kWindowFixed]) { - _globals._spriteIndexes[20] = _scene->_sequences.startCycle( - _globals._spriteIndexes[5], 0, 1); + _globals._spriteIndexes[20] = _scene->_sequences.startCycle(_globals._spriteIndexes[5], 0, 1); _scene->_sequences.addTimer(60, 100); } else { - _globals._spriteIndexes[21] = _scene->_sequences.startCycle( - _globals._spriteIndexes[6], false, 1); - _globals._spriteIndexes[22] = _scene->_sequences.startReverseCycle( - _globals._spriteIndexes[7], false, 4, 0, 0, 0); + _globals._spriteIndexes[21] = _scene->_sequences.startCycle(_globals._spriteIndexes[6], false, 1); + _globals._spriteIndexes[22] = _scene->_sequences.startReverseCycle(_globals._spriteIndexes[7], false, 4, 0, 0, 0); _scene->_sequences.addTimer(160, 70); _game._player._stepEnabled = false; } } else { - if (_globals[kBeamIsUp] == 0) { - _globals._spriteIndexes[23] = _scene->_sequences.startCycle( - _globals._spriteIndexes[8], false, 1); - } + if (_globals[kBeamIsUp] == 0) + _globals._spriteIndexes[23] = _scene->_sequences.startCycle(_globals._spriteIndexes[8], false, 1); - if (_globals[kWindowFixed] == 0) { - _globals._spriteIndexes[23] = _scene->_sequences.startCycle( - _globals._spriteIndexes[19], false, 1); - } + if (_globals[kWindowFixed] == 0) + _globals._spriteIndexes[23] = _scene->_sequences.startCycle(_globals._spriteIndexes[19], false, 1); - _globals._spriteIndexes[1] = _scene->_sequences.startCycle( - _globals._spriteIndexes[1], false, 1); + _globals._spriteIndexes[1] = _scene->_sequences.startCycle(_globals._spriteIndexes[1], false, 1); _scene->_sequences.setMsgPosition(_globals._spriteIndexes[16], Common::Point(133, 139)); _scene->_sequences.setDepth(_globals._spriteIndexes[16], 8); } @@ -168,10 +160,8 @@ void Scene804::step() { } } else { if (_globals._v3 && _globals._v2 && _scene->_activeAnimation->getCurrentFrame() == 39) { - _globals._spriteIndexes[16] = _scene->_sequences.startCycle( - _globals._spriteIndexes[1], false, 1); - _scene->_sequences.setMsgPosition(_globals._spriteIndexes[16], - Common::Point(133, 139)); + _globals._spriteIndexes[16] = _scene->_sequences.startCycle(_globals._spriteIndexes[1], false, 1); + _scene->_sequences.setMsgPosition(_globals._spriteIndexes[16], Common::Point(133, 139)); _scene->_sequences.setDepth(_globals._spriteIndexes[16], 8); _globals._v3 = 0; } @@ -183,6 +173,7 @@ void Scene804::step() { if (_game._trigger == 70) _globals._v5 = 42; + if (_scene->_activeAnimation->getCurrentFrame() == 65) _scene->_sequences.remove(_globals._spriteIndexes[22]); |