new bullets more visible in other maps
This commit is contained in:
parent
da84ad04fe
commit
45df158980
2 changed files with 3 additions and 3 deletions
BIN
public_html/assets/bullet2.png
Normal file
BIN
public_html/assets/bullet2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue