mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-23 21:46:15 -04:00
Changelog update
This commit is contained in:
parent
a328520191
commit
adfd3ecf83
7 changed files with 67 additions and 82 deletions
17
src/game.ts
17
src/game.ts
|
@ -386,21 +386,10 @@ export function tick() {
|
|||
}
|
||||
|
||||
let FPSCounter = 0;
|
||||
let FPSDisplay = document.getElementById("FPSDisplay") as HTMLDivElement;
|
||||
export let lastMeasuredFPS = 60;
|
||||
|
||||
setInterval(() => {
|
||||
if (isOptionOn("show_fps")) {
|
||||
FPSDisplay.innerText =
|
||||
FPSCounter +
|
||||
" FPS " +
|
||||
liveCount(gameState.coins) +
|
||||
" COINS " +
|
||||
(liveCount(gameState.particles) +
|
||||
liveCount(gameState.texts) +
|
||||
liveCount(gameState.lights)) +
|
||||
" PARTICLES ";
|
||||
} else {
|
||||
FPSDisplay.innerText = "";
|
||||
}
|
||||
lastMeasuredFPS = FPSCounter
|
||||
FPSCounter = 0;
|
||||
}, 1000);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue