Font measuring fix.

This commit is contained in:
Mal 2020-02-24 00:34:20 +01:00
parent cff0319053
commit 88d1c0db87
1 changed files with 1 additions and 1 deletions

View File

@ -122,6 +122,7 @@ function MainLoop(timestamp)
KeyJump.pressed = false;
lastTimestamp = undefined;
lastRendered = undefined;
textBoxGameFinished.updateLines(window.innerWidth - 40, context);
textBoxGameFinished.animate();
}
@ -209,7 +210,6 @@ window.addEventListener(
textBoxGameFinished.hasBorder = true;
textBoxGameFinished.colorText = 'yellow';
textBoxGameFinished.colorBorder = 'black';
textBoxGameFinished.updateLines(window.innerWidth - 40, context);
architecture = RetroArchitecture.createFromData(level);
camera.borderRight = architecture.columns * architecture.tileWidth;