mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
Font measuring fix.
This commit is contained in:
@@ -122,6 +122,7 @@ function MainLoop(timestamp)
|
|||||||
KeyJump.pressed = false;
|
KeyJump.pressed = false;
|
||||||
lastTimestamp = undefined;
|
lastTimestamp = undefined;
|
||||||
lastRendered = undefined;
|
lastRendered = undefined;
|
||||||
|
textBoxGameFinished.updateLines(window.innerWidth - 40, context);
|
||||||
textBoxGameFinished.animate();
|
textBoxGameFinished.animate();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -209,7 +210,6 @@ window.addEventListener(
|
|||||||
textBoxGameFinished.hasBorder = true;
|
textBoxGameFinished.hasBorder = true;
|
||||||
textBoxGameFinished.colorText = 'yellow';
|
textBoxGameFinished.colorText = 'yellow';
|
||||||
textBoxGameFinished.colorBorder = 'black';
|
textBoxGameFinished.colorBorder = 'black';
|
||||||
textBoxGameFinished.updateLines(window.innerWidth - 40, context);
|
|
||||||
|
|
||||||
architecture = RetroArchitecture.createFromData(level);
|
architecture = RetroArchitecture.createFromData(level);
|
||||||
camera.borderRight = architecture.columns * architecture.tileWidth;
|
camera.borderRight = architecture.columns * architecture.tileWidth;
|
||||||
|
|||||||
Reference in New Issue
Block a user