https://github.com/ufrshubham/2d-snake-game
A simple 2D Snake Game using C++ and SFML.
https://github.com/ufrshubham/2d-snake-game
2d-game 2d-snake-game cplusplus cpp sfml snake-game top-down
Last synced: 4 months ago
JSON representation
A simple 2D Snake Game using C++ and SFML.
- Host: GitHub
- URL: https://github.com/ufrshubham/2d-snake-game
- Owner: ufrshubham
- License: zlib
- Created: 2020-04-13T14:47:08.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-30T08:40:56.000Z (10 months ago)
- Last Synced: 2024-10-18T23:31:59.834Z (6 months ago)
- Topics: 2d-game, 2d-snake-game, cplusplus, cpp, sfml, snake-game, top-down
- Language: C++
- Homepage:
- Size: 2.8 MB
- Stars: 31
- Watchers: 3
- Forks: 22
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: License.txt
Awesome Lists containing this project
README
# 2D Snake Game
## A simple game created using C++ and SFML
---
- Note: For cross platform build checkout branch [cmake-build](https://github.com/ufrshubham/2D-Snake-Game/tree/cmake-build)
### What it looks like?

### This game has multiple states
- Main Menu State - Displays main menu
- Game Play State - The actual game play
- Pause Game State - Pause screen
- Game Over State - Displays game over screen### Features
- Snake can be controlled with arrow keys
- Snake automatically advances 16px
- Food gets randomly placed
- Snake can eat food to grow in length
- Each food increase player score by 1 point### Build Instructions
- Requirements
- C++ compiler
- Make
- SFML lib
- Just run make command to generate the executable