aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2017-09-04 19:32:35 +0200
committerThierry Crozat2018-01-23 02:15:31 +0000
commite45d94b0653e58cfe597794dbdd9954beeca0cbb (patch)
tree0e82aafdec7a7ba39ff6ec83bc5ef772a5217e4c
parentba7729a7674e5c363f221b7529fe970d43a648cc (diff)
downloadscummvm-rg350-e45d94b0653e58cfe597794dbdd9954beeca0cbb.tar.gz
scummvm-rg350-e45d94b0653e58cfe597794dbdd9954beeca0cbb.tar.bz2
scummvm-rg350-e45d94b0653e58cfe597794dbdd9954beeca0cbb.zip
SUPERNOVA: Implements screen shake
-rw-r--r--engines/supernova/state.cpp8
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() {