minor formatting
This commit is contained in:
parent
07901202bf
commit
fd4cb23182
18
sketch.js
18
sketch.js
@ -291,10 +291,10 @@ function draw() {
|
||||
else if (flagpole.isReached)
|
||||
text("Level complete. Press space to continue...", 0, height / 2);
|
||||
if (showDebugData) {
|
||||
text(gameChar.curGroundPosYIndex, 99, 99);
|
||||
text(gameChar.getCurGroundPosY(), 188, 99);
|
||||
text(gameChar.sprite, 277, 99);
|
||||
drawFps();
|
||||
text(gameChar.curGroundPosYIndex, 99, 99);
|
||||
text(gameChar.getCurGroundPosY(), 188, 99);
|
||||
text(gameChar.sprite, 277, 99);
|
||||
drawFps();
|
||||
}
|
||||
pop();
|
||||
}
|
||||
@ -785,12 +785,10 @@ function checkPlayerDie() {
|
||||
}
|
||||
function drawFps() {
|
||||
push();
|
||||
|
||||
fps = Math.round(frameRate() * 10) / 10;
|
||||
if (fps_recent_values.length < 200) fps_recent_values.push(fps);
|
||||
else fps_recent_values.shift();
|
||||
fps_recent_values.push(fps);
|
||||
|
||||
fps = Math.round(frameRate() * 10) / 10;
|
||||
if (fps_recent_values.length < 200) fps_recent_values.push(fps);
|
||||
else fps_recent_values.shift();
|
||||
fps_recent_values.push(fps);
|
||||
fill("red");
|
||||
text(fps, 400, 99);
|
||||
stroke("black");
|
||||
|
Loading…
Reference in New Issue
Block a user