A potentiometer game on the ChipKIT Uno32 board
- Description
- Tutorial
- Installation
- Usage
- Contributing
- License
This is a simple maze runner game using ray tracing to display from 2D to 3D and a potentiometer to rotate the player POV.
There are four buttons on the ChipKIT. However this project only uses/needs one button, button 4 (BTN4). BTN4 is responsible for moving forward in the players direction.
The potientiometer can be used to rotate the players field of view, i.e what the player can see which is also what is displayed on the screen. The potientiometer uses the relative rotation since it can only rotate about 270 degress (3/2 PI radians) while the player is supposed to be able to rotate 360 degress (2 PI). So if it rotates a third of its rotation to the left then the players field of view will also be rotated a third of its rotation to the left.
- Clone this repository.
- Open an terminal with the path for the cloned repository.
- Enter to the mcb32 terminal
. /opt/mcb32tools/environment - Install the repository to the ChipKit.
mini-project/src$ make
mini-project/src$ make install- Follow the instructions on the screen and enjoy.
For more detailed installations instructions regarding cloning of the repository, we recommend Github Docs.
For further installation instructions regarding the mcb32 toolchain, we recommend the mcb32tools installation guide, the ChipKit manual as well as the provided guides, FAQ's and other help provided by the KTH course IS1500.
- BTN4: go forwards.
- Potentiometer: rotate to rotate player FOV in inputed rotational direction.
This project was made by Bernard Rumar (bernardr) & Fredrik Magnevill (magnev).
This is a school project which means no contributions are allowed.
This project is licensed under the MIT License - see the LICENSE file for details
- Inspiration for this project came from the game Wolfenstein 3D