From c44f7e5e46b80087cb10581546c9b0959d9261b8 Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 23 Jul 2023 23:01:51 +1000 Subject: Remove percent sign from food counter. --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index a796981..6d2ab4e 100644 --- a/src/main.js +++ b/src/main.js @@ -705,7 +705,7 @@ function on_update() { draw_text(canvas.width - score_text.length * 16 * sprite_scale, 0, score_text); draw_text(canvas.width - level_text.length * 16 * sprite_scale, 16 * sprite_scale, level_text); - let food_text = `${Math.round(food)}%`; + let food_text = `${Math.round(food)}`; let r = sprites.food_icon; ctx.drawImage(spritesheet, r.x, r.y, r.w, r.h, 0, 0, r.w * sprite_scale, r.h * sprite_scale); -- cgit v1.2.3-54-g00ecf