This commit is contained in:
Baptiste 2023-11-29 18:57:19 +01:00
parent 14a725ba90
commit 29a353c66a
2 changed files with 1 additions and 1 deletions

BIN
assets/body2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

View file

@ -17,7 +17,7 @@ class Render {
RenderPlayer(player) {
const img = new Image();
img.src = "./assets/body.png";
img.src = "./assets/body2.png";
this.ctx.save();
this.ctx.translate(player.x, player.y);
this.ctx.rotate(player.angle);