snake: better empty paint

This commit is contained in:
Trianta 2024-12-09 23:25:24 -06:00
parent a83b18c30d
commit ac770bc509

View File

@ -158,7 +158,7 @@ class SnakeCore {
else if (isBitSet(g_snake.board[i][j], BoardState.FOOD))
g_snake.context.fillStyle = "red";
else
g_snake.context.fillStyle = "none";
continue;
g_snake.context.fillRect(j * g_snake.grid, i * g_snake.grid, g_snake.grid, g_snake.grid);
}
}