TWINE: replaced magic numbers
This commit is contained in:
parent
a0f39a8c81
commit
fe21416bd6
4 changed files with 5 additions and 5 deletions
|
@ -446,7 +446,7 @@ void GameState::processGameoverAnimation() {
|
|||
_engine->_renderer->prepareIsoModel(gameOverPtr);
|
||||
_engine->_sound->stopSamples();
|
||||
_engine->_music->stopMidiMusic(); // stop fade music
|
||||
_engine->_renderer->setCameraPosition(320, 240, 128, 200, 200);
|
||||
_engine->_renderer->setCameraPosition(SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2, 128, 200, 200);
|
||||
int32 startLbaTime = _engine->lbaTime;
|
||||
_engine->_interface->setClip(left, top, right, bottom);
|
||||
|
||||
|
|
|
@ -157,8 +157,8 @@ void Holomap::processHolomap() {
|
|||
_engine->_screens->copyScreen(_engine->frontVideoBuffer, _engine->workVideoBuffer);
|
||||
|
||||
loadHolomapGFX();
|
||||
drawHolomapTitle(320, 25);
|
||||
_engine->_renderer->setCameraPosition(320, 190, 128, 1024, 1024);
|
||||
drawHolomapTitle(SCREEN_WIDTH / 2, 25);
|
||||
_engine->_renderer->setCameraPosition(SCREEN_WIDTH / 2, 190, 128, 1024, 1024);
|
||||
|
||||
_engine->_text->initTextBank(TextBankId::Inventory_Intro_and_Holomap);
|
||||
_engine->_text->setFontCrossColor(9);
|
||||
|
|
|
@ -241,7 +241,7 @@ public:
|
|||
|
||||
void renderBehaviourModel(int32 boxLeft, int32 boxTop, int32 boxRight, int32 boxBottom, int32 Y, int32 angle, uint8 *entityPtr);
|
||||
|
||||
void renderInventoryItem(int32 X, int32 Y, uint8 *itemBodyPtr, int32 angle, int32 param);
|
||||
void renderInventoryItem(int32 x, int32 y, uint8 *itemBodyPtr, int32 angle, int32 param);
|
||||
};
|
||||
|
||||
} // namespace TwinE
|
||||
|
|
|
@ -1431,7 +1431,7 @@ static int32 lPROJ_3D(TwinEEngine *engine, LifeScriptContext &ctx) {
|
|||
engine->flip();
|
||||
engine->_scene->changeRoomVar10 = 0;
|
||||
|
||||
engine->_renderer->setCameraPosition(320, 240, 128, 1024, 1024);
|
||||
engine->_renderer->setCameraPosition(SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2, 128, 1024, 1024);
|
||||
engine->_renderer->setCameraAngle(0, 1500, 0, 25, -128, 0, 13000);
|
||||
engine->_renderer->setLightVector(896, 950, 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue