Skip to content

Luke-LoPresti/SFML-Snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake

A simple snake game made with C++ and SFML.
The more food you eat, the longer the snake gets and the faster it moves! How long can you survive?

snakeGif

Release Executable

If you just wish to play the game, a release executable is available for download.

Requirements

Please Note: Earlier versions may work.

Dependencies

SFML 2.5.1 or above - http://www.sfml-dev.org/

MS Build

Microsoft Visual Studio 19 or above - https://visualstudio.microsoft.com/
SFML Visual C++ 15 (2017) - 32-bit - http://www.sfml-dev.org/

Building

Method 1

The SFML libraries are already statically linked within the project.
A environment variable must be created called SFML_DIR which should point to the SFML root directory.
Ex. SFML_DIR=C:\SFML-2.5.1

  1. Open the file Snake.sln.
  2. Set the target to Debug or Release 32-bit (x86).
  3. Build and run.

Method 2

  1. Open the file Snake.sln.
  2. Follow the procedure to link the required SFML libraries outlined here (either dynamically or statically) - https://www.sfml-dev.org/tutorials/2.5/start-vc.php
  3. Set the target to Debug or Release 32-bit (x86) based on which SFML libraries you linked from the above tutorial.
  4. Build and run.

About

A clone of Snake made with C++ and SFML.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages