To start things off, I started learning OpenGL from this wonderful website. After setting up the project infrastructure on the 10th of March, I went through all the "Getting Started" tutorials. This just covers the basics of OpenGL and after re-reading the tutorial sections a few times, I decided to create my own project. I wanted to make a classic game, but in 3D, so I chose to make Snake. The game took 4 days in total to make and is composed of ~900 lines of C code.
Here's a screenshot of the game:
If you want to try out the game yourself or inspect the code, you can do that here at the Github repository:
A snake game made with OpenGL and C (composed of 900 lines of questionable code)
- GCC Compiler
- GLFW library (
sudo apt-get install libglfw3-dev)
- GLAD (v.3.3)
Let me know what you think!
Top comments (0)