implemented screen shaking as in the original engine with delays before moving video memory

svn-id: r48393
This commit is contained in:
Vladimir Menshakov 2010-03-24 20:45:37 +00:00
parent 02ea77a2a8
commit 93084baf28

View File

@ -1119,18 +1119,19 @@ bool Scene::processEventQueue() {
break;
case SceneEvent::kEffect:
_system->setShakePos(8);
_system->delayMillis(80); //2 vsyncs
_system->setShakePos(8);
_system->updateScreen();
_system->delayMillis(80); //2 vsyncs
_system->setShakePos(0);
_system->updateScreen();
_system->delayMillis(80); //2 vsyncs
_system->delayMillis(80); //2 vsyncs
_system->setShakePos(4);
_system->updateScreen();
_system->delayMillis(80); //2 vsyncs
_system->delayMillis(80); //2 vsyncs
_system->setShakePos(0);
_system->updateScreen();