This is just a simple "VR" tech demo thing. It could also be called head tracking... V0.7: Added a meter to show how high/low your vertical tilt is. V0.6: Made it so when you start the game, it resets the CAMERA center. V0.5: Made it so you cannot clip through walls. V0.4: Made the edge have a different color then the map. V0.3: Made it when you press SPACE it resets the camera center. V0.2: Made it work like a real VR. V0.1: Released game.
If you don't want to use camera(or you don't have camera), then don't use this. Raycaster by @1970X How to use: rotate your head to move the CAMERA sprite. You can look up and down to change the wall Y. Use W to move forward and S to go backward. Press SPACE to recenter the CAMERA sprite.