fix: correction d'erreur dans le choix de bonne sortie
This commit is contained in:
@@ -15,7 +15,7 @@ export function drawMaze() {
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
|
||||
for (let y = 0; y < maze.length; y++) {
|
||||
for (let x = 0; y < maze.length; x++) {
|
||||
for (let x = 0; x < maze[y].length; x++) {
|
||||
if (maze[y][x] === 1) ctx.fillStyle = "#333";
|
||||
else if (maze[y][x] === 2) ctx.fillStyle = "gold";
|
||||
else ctx.fillStyle = "#eee";
|
||||
|
||||
Reference in New Issue
Block a user