Giter Site home page Giter Site logo

snakegame's Introduction

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.

snakegame's People

Contributors

arnavb avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

snakegame's Issues

Debug

`}

void debugKeyboard() {
while (!antKeyboard.checkKeyState(KEY_PRESS_ESC)) {
cout << "Key Code : " << (int) inportb(0x60) << endl;
}
}

void main() {
clrscr();

//debugKeyboard();
runGame();

}
'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.