I know how to detect if there on a wall, but how would I handle it?
I have tried reversing the players movement which is this.
PHP Code:
player.x -= sin(this.angle) * this.speed;
player.y -= cos(this.angle) * this.speed;
But that doesn't work.
I think I'm in way over my head.