From 1643dca7a09bd3f471a36df8e13d711adc196ef2 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sun, 28 Sep 2025 18:35:02 -0700 Subject: [PATCH] fix snake --- app/nose/bin/snake.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/nose/bin/snake.ts b/app/nose/bin/snake.ts index 1089c96..c5a10cc 100644 --- a/app/nose/bin/snake.ts +++ b/app/nose/bin/snake.ts @@ -90,13 +90,13 @@ export function draw(ctx: GameContext) { for (const s of snake) { ctx.rectfill( s.x * CELL, s.y * CELL, - (s.x + 1) * CELL, (s.y + 1) * CELL, + ((s.x + 1) * CELL) + .5, ((s.y + 1) * CELL) + .5, "magenta" ) } // score! - ctx.text(`Score: ${snake.length - 1}`, 5, boardH - 25, "cyan") + ctx.text(`Score: ${snake.length - 1}`, 5, boardH - 18, "cyan", 12) c.restore()