Skip to content

A simple clone of the game Snake made using SFML and Visual C++

License

Notifications You must be signed in to change notification settings

arnavb/SnakeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

SnakeGame

Powered by SFML License MIT

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

Instructions:

  1. Download the appropriate .zip compressed folder.
  2. Extract the files to a directory of your choice.
  3. 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.

About

A simple clone of the game Snake made using SFML and Visual C++

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages