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()