Skip to content

Commit

Permalink
speed info fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
dafmontenegro committed Mar 3, 2024
1 parent 2c1ed49 commit 1828401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class Ball {
}

getSpeedSecs() {
return windowWidth / (getTargetFrameRate() * this.speed);
return (windowWidth / (getTargetFrameRate() * this.speed)).toFixed(1);
}

update() {
Expand Down

0 comments on commit 1828401

Please sign in to comment.