Skip to content

Commit

Permalink
MADS: Implement sceneScale for v2+ games
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Nov 11, 2015
1 parent 0f5130e commit 0195ee5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions engines/mads/scene.cpp
Expand Up @@ -841,8 +841,14 @@ void Scene::playSpeech(int idx) {
_vm->_audio->playSound(idx - 1);
}

void Scene::sceneScale(int front_y, int front_scale, int back_y, int back_scale) {
warning("TODO: Scene:scaleRoom");
void Scene::sceneScale(int yFront, int maxScale, int yBack, int minScale) {
_sceneInfo->_yBandsEnd = yFront;
_sceneInfo->_maxScale = maxScale;
_sceneInfo->_yBandsStart = yBack;
_sceneInfo->_minScale = minScale;

_bandsRange = _sceneInfo->_yBandsEnd - _sceneInfo->_yBandsStart;
_scaleRange = _sceneInfo->_maxScale - _sceneInfo->_minScale;
}

void Scene::animations_tick() {
Expand Down
2 changes: 1 addition & 1 deletion engines/mads/scene.h
Expand Up @@ -263,7 +263,7 @@ class Scene {
void deleteSequence(int idx);
void loadSpeech(int idx);
void playSpeech(int idx);
void sceneScale(int front_y, int front_scale, int back_y, int back_scale);
void sceneScale(int yFront, int maxScale, int yBack, int minScale);
void animations_tick();

int _speechReady;
Expand Down

0 comments on commit 0195ee5

Please sign in to comment.