Permalink
Browse files

SUPERNOVA: Implements delay for animations

  • Loading branch information...
Joefish committed Jul 23, 2017
1 parent 16dd61c commit f18c01941c9eb6a97eb202835c88f1e1a5defb4e
Showing with 9 additions and 3 deletions.
  1. +8 −2 engines/supernova/state.cpp
  2. +1 −1 engines/supernova/state.h
@@ -550,8 +550,14 @@ void GameManager::errorTemp() {
// STUB
}
void GameManager::wait2(int delay) {
// STUB
void GameManager::wait2(int ticks) {
// 1 tick = 1/18.2s
uint end = g_system->getMillis() + (55 * ticks);
while (g_system->getMillis() < end) {
_vm->updateEvents();
g_system->updateScreen();
g_system->delayMillis(_vm->_delay);
}
}
void GameManager::screenShake() {
@@ -141,7 +141,7 @@ class GameManager {
void mouseInput2();
void mouseInput3();
void mouseWait(int delay);
void wait2(int delay);
void wait2(int ticks);
void turnOff();
void turnOn();
void screenShake();

0 comments on commit f18c019

Please sign in to comment.