ufrshubham / 2D-Snake-Game

A simple 2D Snake Game using C++ and SFML.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2D Snake Game

A simple game created using C++ and SFML


  • Note: For cross platform build checkout branch cmake-build

What it looks like?

Demo

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

About

A simple 2D Snake Game using C++ and SFML.

License:zlib License


Languages

Language:C++ 98.0%Language:Makefile 2.0%