Sound & collision fix, wall render 2

This commit is contained in:
Thomas
2020-09-09 20:50:15 +02:00
parent cf7652a39e
commit 6ecbbdff42
4 changed files with 47 additions and 12 deletions

View File

@@ -101,9 +101,12 @@ export default {
}
if (player.state === 'DEAD') this.context.globalAlpha = 0.1
render.walls(this.context, this.canvas, this.camera, this.settings, player)
render.wallsBezier(this.context, this.canvas, this.camera, this.settings, player)
if (player.name === 'e' || player.name === 'q' || player.name === 'r' || player.name === 't') render.playerFace(this.context, this.canvas, this.camera, this.settings, player, player.name)
else render.player(this.context, this.canvas, this.camera, this.settings, player)
if (player.state === 'DEAD') this.context.globalAlpha = 1
this.stats.totalWalls += player.walls.length