Skip to content

Commit

Permalink
fix(game): fix bird rendering position
Browse files Browse the repository at this point in the history
  • Loading branch information
divanov committed Nov 15, 2016
1 parent 5ed50c2 commit dd57f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ Game.prototype.display = function(){
this.ctx.translate(this.birds[i].x, this.birds[i].y);
this.ctx.translate(this.birds[i].width/2, this.birds[i].height/2);
this.ctx.rotate(Math.PI/2 * this.birds[i].gravity/20);
this.ctx.drawImage(images.bird, -this.birds[i].width, -this.birds[i].height/2, this.birds[i].width, this.birds[i].height);
this.ctx.drawImage(images.bird, -this.birds[i].width/2, -this.birds[i].height/2, this.birds[i].width, this.birds[i].height);
this.ctx.restore();
}
}
Expand Down

0 comments on commit dd57f6b

Please sign in to comment.