diff options
author | Vladimir Menshakov | 2010-03-24 20:24:08 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2010-03-24 20:24:08 +0000 |
commit | 620e8bb89f7b4ff855158f2592c836ee6ff831a5 (patch) | |
tree | d651a2ace9cea22e84a0d1361b7ff988c96da6b2 | |
parent | 03ba4a33185198c08dc84c3888170797b1e7c7ce (diff) | |
download | scummvm-rg350-620e8bb89f7b4ff855158f2592c836ee6ff831a5.tar.gz scummvm-rg350-620e8bb89f7b4ff855158f2592c836ee6ff831a5.tar.bz2 scummvm-rg350-620e8bb89f7b4ff855158f2592c836ee6ff831a5.zip |
added shake screen effect
svn-id: r48390
-rw-r--r-- | engines/teenagent/scene.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp index 60b3e7a5d4..8d3ef077b9 100644 --- a/engines/teenagent/scene.cpp +++ b/engines/teenagent/scene.cpp @@ -1119,7 +1119,22 @@ bool Scene::processEventQueue() { break; case SceneEvent::kEffect: - debug(0, "*stub* shaking the screen"); + _system->setShakePos(8); + _system->updateScreen(); + _system->delayMillis(80); //2 vsyncs + _system->updateScreen(); + + _system->setShakePos(0); + _system->updateScreen(); + _system->delayMillis(80); //2 vsyncs + + _system->setShakePos(4); + _system->updateScreen(); + _system->delayMillis(80); //2 vsyncs + + _system->setShakePos(0); + _system->updateScreen(); + current_event.clear(); break; |