core: redesign website #11
@ -158,7 +158,7 @@ class SnakeCore {
|
|||||||
else if (isBitSet(g_snake.board[i][j], BoardState.FOOD))
|
else if (isBitSet(g_snake.board[i][j], BoardState.FOOD))
|
||||||
g_snake.context.fillStyle = "red";
|
g_snake.context.fillStyle = "red";
|
||||||
else
|
else
|
||||||
g_snake.context.fillStyle = "black";
|
g_snake.context.fillStyle = "none";
|
||||||
g_snake.context.fillRect(j * g_snake.grid, i * g_snake.grid, g_snake.grid, g_snake.grid);
|
g_snake.context.fillRect(j * g_snake.grid, i * g_snake.grid, g_snake.grid, g_snake.grid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user