Skip to content

Commit

Permalink
Fix graphic
Browse files Browse the repository at this point in the history
  • Loading branch information
xviniette committed Jul 25, 2016
1 parent 5735e5f commit fe233b2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions game.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,7 @@ Game.prototype.display = function(){
}


this.ctx.fillStyle = "#2F9A00";
for(var i in this.pipes){
this.ctx.fillRect(this.pipes[i].x, this.pipes[i].y, this.pipes[i].width, this.pipes[i].height);
if(i%2 == 0){
this.ctx.drawImage(images.pipetop, this.pipes[i].x, this.pipes[i].y + this.pipes[i].height - images.pipetop.height, this.pipes[i].width, images.pipetop.height);
}else{
Expand Down

0 comments on commit fe233b2

Please sign in to comment.