The goal of this project was to model a battle bot in OpenGL given a picture. The bot is interactive and can be controlled using keyboard keys. Applying simple geometric transformations, the bot can move forwards and backwards, turn and activate its weapon.
- Clone repository
- Ensure you have C++ and C libraries installed
- Install OpenGL (instructins vary depending on your operating system)
- this part may be tricky, as you must ensure you have OpenGL, GLUT and GLEW frameworks
- Navigate to the directory of the project and compile using the following command:
g++ ArmFlipper.cpp QuadMesh.cpp -o ArmFlipper -framework OpenGL -framework GLUT
f
- move bot forwardsb
- move bot backwards↑
- activate weapon←
- turn left→
- turn rights
- spin flagS
- stop spinning flagq
- quit program
Note: Press F1
to see the instructions on how to interact with the battle bot. The instructions will appear on the console window.