Skip to content

Commit

Permalink
Apparently the clearRect is unneeded...
Browse files Browse the repository at this point in the history
  • Loading branch information
kevadsett committed Sep 10, 2016
1 parent 60b01db commit 8aa3005
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/js/game.js
Expand Up @@ -70,7 +70,6 @@ window.NewGame = function() {
} }


function draw() { function draw() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
for (var i = 0; i < DRAW_LAYERS.length; i++) { for (var i = 0; i < DRAW_LAYERS.length; i++) {
GameEvents.emit('draw', DRAW_LAYERS[i]); GameEvents.emit('draw', DRAW_LAYERS[i]);
} }
Expand Down

0 comments on commit 8aa3005

Please sign in to comment.