RA
rafalmaziejuk/Snake
Modern Snake game implemented in C++17 with OpenGL graphics rendering.
About
Snake game written in C++ using modern OpenGL for graphics rendering.
Dependencies:
- GLFW
- GLAD
- Dear ImGui
- stb_image
- FreeType
- Premake5
References:
- docs.gl
- learnopengl.com
- TheCherno's Hazel game engine repository
- TheCherno's OpenGL series
- TheCherno's game engine series
Assets:
Controls
| Turn left | Turn right |
|---|---|
| A | D |
Building the project
Start by cloning the repository with git clone --recursive https://github.com/rafalmaziejuk/Snake.
If you cloned the repository without --recursive option, use git submodule update --init.
Windows
Open scripts folder and run genWindows.bat for Visual Studio 2019 project generation, launch *.sln file and build Solution.
Linux
Open scripts folder, run ./genLinux.sh build and then ./genLinux.sh run.
TODO
- 2D batch renderer
- Refactor Singleton classes (TextRenderer,
InputManager) Events handling- Texture atlasses loading
- Particles
- Post-processing effects
- Sounds
On this page
Languages
C++92.6%Lua4.6%GLSL1.4%C0.8%Shell0.5%Batchfile0.1%
Contributors
MIT License
Created March 29, 2021
Updated March 5, 2026

