lucastle6969 / comp371

repository for comp371 final project Fall 2017 Concordia
0 stars 0 forks source link

Player/camera controls #7

Closed benwiley4000 closed 7 years ago

benwiley4000 commented 7 years ago

This implements Zelda-ish player and camera controls, where WASD can be used to move the player, and the mouse can be used to change the view angle and change the forward direction.

Everything works except for making sure Pacman is oriented toward the view direction. Right now he just orients in respect to the world like in the Pacman game.

I'm not sure how to solve this one. Is there a way to get the proper angle using the up vector and the forward direction, or do we need more?

benwiley4000 commented 7 years ago

👍 feel free to share any comments if you have them! Thanks

benwiley4000 commented 7 years ago

Hey, if you check the latest commit I changed how orientation works - you now pass it a direction vector instead of an angle. Let me know if you have any comments!

benwiley4000 commented 7 years ago

Bonus, now the controls are a lot more fluid and you can hold down multiple arrow keys at once