A simple clone of the game Snake made using SFML and Visual C++. This project, and all associated code, is licensed under the MIT License as outlined under LICENSE.
Download Links for Windows
- x86: https://drive.google.com/file/d/0B5LejbIN6T8gVmNBNXFJSHl1ckU/view?usp=sharing (Works for x86 and x64)
- x64: https://drive.google.com/file/d/0B5LejbIN6T8gUGJXNFotZ0dJZTA/view?usp=sharing (Recommended for x64)
Instructions:
- Download the appropriate
.zip
compressed folder. - Extract the files to a directory of your choice.
- Run the application
Snake!
inside the directory.
Dependencies:
To compile the code on Visual Studio, download the files and place them in a WIN32 application. Then download and link SFML as outlined here.
To compile the code using g++, download the files and place them in a directory of your choice. Change the file main.cpp
to the following:
#include "SnakeGameApp.hpp"
#include <stdexcept>
int main()
{
try
{
SnakeGameApp game;
game.run();
}
catch (const std::exeception& error)
{
//Error handling code
}
catch (...)
{
//Error handling code
}
}
Then download and link SFML as outlined here. Make sure the four resource files that end in .ttf
or .png
are in the same directory as the executable.
For other platforms, check out the tutorials for how to set up the game.
This repository does NOT accept pull requests and all pull requests will effectively be ignored.