diff options
author | Joseph-Eugene Winzer | 2017-09-04 19:32:35 +0200 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:31 +0000 |
commit | e45d94b0653e58cfe597794dbdd9954beeca0cbb (patch) | |
tree | 0e82aafdec7a7ba39ff6ec83bc5ef772a5217e4c | |
parent | ba7729a7674e5c363f221b7529fe970d43a648cc (diff) | |
download | scummvm-rg350-e45d94b0653e58cfe597794dbdd9954beeca0cbb.tar.gz scummvm-rg350-e45d94b0653e58cfe597794dbdd9954beeca0cbb.tar.bz2 scummvm-rg350-e45d94b0653e58cfe597794dbdd9954beeca0cbb.zip |
SUPERNOVA: Implements screen shake
-rw-r--r-- | engines/supernova/state.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp index 3df96f2db2..57a0edf340 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -1010,6 +1010,14 @@ void GameManager::handleTime() { void GameManager::screenShake() { // STUB + for (int i = 0; i < 12; ++i) { + _vm->_system->setShakePos(4); + wait2(1); + _vm->_system->setShakePos(-4); + wait2(1); + } + + _vm->_system->setShakePos(0); } void GameManager::shock() { |