Skip to content

This is a simple implementation of the classic Snake game in C++ using the SFML library

License

Notifications You must be signed in to change notification settings

mmistika/SFML-SnakeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Snake Game with SFML

This is a simple implementation of the classic Snake game in C++ using the SFML library. The game is written in Visual Studio and is unlicensed, which means that you can use it for free.



snake-gif


Getting Started

  1. To get started with the game, you will need to have the SFML library installed on your computer. You can download the latest SFML library from the official website.

  2. Once you have downloaded and installed the SFML library, you can clone this repository to your computer by running the following command:

    git clone https://github.com/mmistika/SFML-SnakeGame.git
    
    • Add the </path/to/sfml/>/include to your c++ include path.
    • Then add </path/to/sfml/>/lib to the linker extra library path.
  3. Compile and play


How to Play

The game is very simple to play. Use the arrow keys to move the snake around the screen. The goal is to eat as many apples as possible without running into the walls or the snake's own tail. Each apple that you eat will increase your score by one.


Features

  • Simple, easy-to-understand code
  • Uses the SFML library for graphics and input handling
  • Classic gameplay that everyone knows and loves