diff options
author | johndoe123 | 2014-03-18 16:00:51 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 3fc592df497b957b42aa4eec27f8f77f899e0700 (patch) | |
tree | ca9309350ab564c401d0fc03640075a770f78530 /engines/illusions/illusions.cpp | |
parent | b3b0bd884dc0cec008cf050f7023bbcdb20f5999 (diff) | |
download | scummvm-rg350-3fc592df497b957b42aa4eec27f8f77f899e0700.tar.gz scummvm-rg350-3fc592df497b957b42aa4eec27f8f77f899e0700.tar.bz2 scummvm-rg350-3fc592df497b957b42aa4eec27f8f77f899e0700.zip |
ILLUSIONS: Add Control::calcPosition and Control::readPointsConfig
Diffstat (limited to 'engines/illusions/illusions.cpp')
-rw-r--r-- | engines/illusions/illusions.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/engines/illusions/illusions.cpp b/engines/illusions/illusions.cpp index 3d182276e0..ddb4d6039e 100644 --- a/engines/illusions/illusions.cpp +++ b/engines/illusions/illusions.cpp @@ -136,20 +136,16 @@ Common::Error IllusionsEngine::run() { // Actor/graphics test _resSys->loadResource(0x00110007, 0, 0); _resSys->loadResource(0x00100006, 0, 0); - _controls->placeActor(0x00050008, Common::Point(200, 200), 0x00060136, 0x00040001, 0); - Control *control = *_controls->_controls.begin(); control->setActorFrameIndex(1); control->appearActor(); - + //_camera->panToPoint(Common::Point(800, 0), 500, 0); while (!shouldQuit()) { updateGraphics(); _screen->updateSprites(); _system->updateScreen(); updateEvents(); - - //break; } #endif @@ -268,8 +264,8 @@ int IllusionsEngine::updateGraphics() { debug("control->_pauseCtr: %d; actor->_flags: %04X", control->_pauseCtr, actor->_flags); if (control->_pauseCtr == 0 && actor && (actor->_flags & 1) && !(actor->_flags & 0x0200)) { - // TODO Common::Point drawPosition = control->calcPosition(panPoint); - Common::Point drawPosition(200, 200);//DEBUG + Common::Point drawPosition = control->calcPosition(panPoint); + debug("drawPosition: %d, %d", drawPosition.x, drawPosition.y); if (actor->_flags & 0x2000) { Frame *frame = &(*actor->_frames)[actor->_frameIndex - 1]; _screen->_decompressQueue->insert(&actor->_drawFlags, frame->_flags, |