diff options
author | Paul Gilbert | 2014-08-10 11:47:15 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-08-10 11:47:15 -0400 |
commit | cce0c2ff97878b2b0b8a87e25395c3ef98bc584e (patch) | |
tree | 5a63d87c97114e834d90bb0d43adbea8cb0f2176 /engines/access/amazon/amazon_game.cpp | |
parent | 00901b200bffcbff69694ff6b54d55908fd74180 (diff) | |
download | scummvm-rg350-cce0c2ff97878b2b0b8a87e25395c3ef98bc584e.tar.gz scummvm-rg350-cce0c2ff97878b2b0b8a87e25395c3ef98bc584e.tar.bz2 scummvm-rg350-cce0c2ff97878b2b0b8a87e25395c3ef98bc584e.zip |
ACCESS: Adding sprite resources and screen saving
Diffstat (limited to 'engines/access/amazon/amazon_game.cpp')
-rw-r--r-- | engines/access/amazon/amazon_game.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/access/amazon/amazon_game.cpp b/engines/access/amazon/amazon_game.cpp index d1ba0e0258..5c2cda61aa 100644 --- a/engines/access/amazon/amazon_game.cpp +++ b/engines/access/amazon/amazon_game.cpp @@ -126,6 +126,8 @@ void AmazonEngine::doTitle() { _sound->playSound(1); _objectsTable[0] = _files->loadFile(0, 2); + SpriteResource *spr = new SpriteResource(this, _objectsTable[0], _files->_filesize); + _sound->playSound(1); _screen->_loadPalFlag = false; @@ -141,9 +143,11 @@ void AmazonEngine::doTitle() { _buffer2.copyFrom(_buffer1); int id = READ_LE_UINT16(COUNTDOWN + _pCount * 4); int xp = READ_LE_UINT16(COUNTDOWN + _pCount * 4 + 2); - _screen->plotImage(_objectsTable[0], id, Common::Point(xp, 71)); + _screen->plotImage(spr, id, Common::Point(xp, 71)); } // TODO: More to do + + delete spr; } void AmazonEngine::doOpening() { |