mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
implemented screen shaking as in the original engine with delays before moving video memory
svn-id: r48393
This commit is contained in:
parent
02ea77a2a8
commit
93084baf28
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user