https://github.com/jadamka/snake-2d-opengl
https://github.com/jadamka/snake-2d-opengl
cpp cpp17 game game-development gamedev opengl opengl33 opengl330 snake snake-game snakegame
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jadamka/snake-2d-opengl
- Owner: Jadamka
- License: mit
- Created: 2025-06-07T15:50:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-07T16:18:49.000Z (about 1 year ago)
- Last Synced: 2025-06-07T17:25:02.137Z (about 1 year ago)
- Topics: cpp, cpp17, game, game-development, gamedev, opengl, opengl33, opengl330, snake, snake-game, snakegame
- Language: C++
- Homepage:
- Size: 412 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🐍 Snake Game (OpenGL)
A simple 2D Snake clone made using OpenGL, created as part of my learning journey into graphics programming.
---
## 🎮 About the Game
This is a classic snake game where player controls snake to collect apples, which help you grow in size. Snake will die if he hits his own tail or border.
Built using:
- C++
- OpenGL (3.3)
- GLFW (for window and input)
- GLM (for math)
---
## 🧰 Dependencies
This project uses the following libraries:
- [GLFW](https://www.glfw.org)
- [GLM](https://github.com/g-truc/glm)
## 🛠️ Building the Project
### Prerequisites
- CMake >= 3.16
- C++17 compatible compiler
- OpenGL development libraries
### Building Instructions
```bash
git clone https://github.com/Jadamka/snake-2d-opengl.git
cd snake-2d-opengl
mkdir build
cd build
cmake ..
make
./SnakeGame