Change Game Background Color

To debug correct canvas
This commit is contained in:
Marty Oehme 2018-07-20 13:37:30 +02:00
parent 2eacf58314
commit 96a776c60b

View file

@ -16,11 +16,10 @@ class Game {
void update([num dt]) {}
void draw([num interp]) {
// CanvasRenderingContext2D ctx = this.canvas.getContext('2d');
// print(grid.toString());
int brickW = (canvas.width ~/ grid[0].length);
int brickH = (canvas.height ~/ grid.length);
ctx.setFillColorRgb(255, 0,0);
ctx.clearRect(0, 0, canvas.width, canvas.height);
for(int y=0;y<grid.length;y++) {
for(int x=0;x<grid[y].length;x++) {