Skip to content
Snippets Groups Projects
Commit 194bafa7 authored by zm343's avatar zm343
Browse files

Added banana color

parent b57b2cda
Branches
No related tags found
1 merge request!10Update game.js for collision & growing features
......@@ -80,6 +80,16 @@
);
ctx.fillStyle = "white";
}
if (board[i][j].type === 4) {
ctx.fillStyle = "yellow";
ctx.fillRect(
j * widthStep + 1,
i * heightStep + 1,
widthStep - 2,
heightStep - 2,
);
ctx.fillStyle = "white";
}
}
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment