TAILLE DES BALLES

This commit is contained in:
Baptiste 2023-12-07 13:14:08 +01:00
parent 712a3596fa
commit e843dda5f8

View file

@ -76,7 +76,7 @@ class Render {
RenderBullet(bullet) { RenderBullet(bullet) {
this.ctx.save(); this.ctx.save();
this.ctx.translate(bullet.x, bullet.y); this.ctx.translate(bullet.x, bullet.y);
this.ctx.drawImage(imgBullet, -playerSize / 2, -playerSize / 2, playerSize, playerSize); this.ctx.drawImage(imgBullet, -20 / 2, -20 / 2, 20, 20);
this.ctx.restore(); this.ctx.restore();
} }