🚀 smarter snake

This commit is contained in:
platane
2020-07-21 00:34:22 +02:00
parent 73bfce908e
commit fd9d7dadf6
6 changed files with 167 additions and 43 deletions

View File

@@ -45,7 +45,7 @@ export const drawWorld = (
) => {
ctx.save();
ctx.translate(2 * o.sizeCell, 2 * o.sizeCell);
ctx.translate(1 * o.sizeCell, 2 * o.sizeCell);
drawGrid(ctx, grid, o);
drawSnake(ctx, snake, o);