An open API service indexing awesome lists of open source software.

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.

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?

![Demo](Demo.gif)

### 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