new bullets more visible in other maps

This commit is contained in:
Victor Lasserre 2023-12-21 17:34:34 +01:00
parent da84ad04fe
commit 45df158980
2 changed files with 3 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

@ -14,7 +14,7 @@ const map3 = new Image();
const orange_portal = new Image();
const blue_portal = new Image();
imgPlayer.src = "./assets/body.png";
imgBullet.src = "./assets/bullet.png";
imgBullet.src = "./assets/bullet2.png";
imgCar.src = "./assets/car.png";
imgPnj.src = "./assets/pnj.png";
imgPnj2.src = "./assets/pnj1.png";
@ -75,7 +75,7 @@ class Render {
{
this.ctx.save();
this.ctx.translate(x, y);
this.ctx.drawImage(imgBullet, -20 / 2, -20 / 2, 20, 20);
this.ctx.drawImage(imgBullet, -10 / 2, -10 / 2, 10, 10);
this.ctx.restore();
}
}
@ -138,7 +138,7 @@ class Render {
this.ctx.fillRect(s.x,s.y,s.w,s.h);
});
}
cars.forEach((car) => {
this.RenderCar(car.x,car.y,0,car.angle+(car.drift>0?car.drift/150:0)); // lerp(f(t))
});