codenulls / SnakeGame

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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++

License:MIT License


Languages

Language:C++ 100.0%