From 96a776c60ba37c39d81e3580c955a15467343c3b Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 20 Jul 2018 13:37:30 +0200 Subject: [PATCH] Change Game Background Color To debug correct canvas --- lib/game/Game.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/game/Game.dart b/lib/game/Game.dart index 1c23630..f9851c0 100644 --- a/lib/game/Game.dart +++ b/lib/game/Game.dart @@ -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