Sfml Snake Save Abandoned

snake game in C++ using sfml library.

Project README

SFML-snake

Language (C++) License: GPL v3 Build Status Gitter chat

A classic snake game made in C++ using sfml library. It will be a good way to learn about different aspect of development with C++ for a beginer.

Currently the build system available are:
  MS Build (Visual Studio)
  GNU Make

If you are a beginer, try to

  • Contribute and fix the issues that will be posted.
  • Add new issues.
  • Create a CMAKE file

Screenshots

Screenshot Screenshot Screenshot

Requirements

Must Have (dependencies)

Linux
```
 sudo apt-get install libsfml-dev
```
Windows
  • Vist www.sfml-dev.org and download the lastest version of the library.
  • In project settings,
  1. Add the </path/to/sfml/>/include to your c++ include path.
  2. Then add </path/to/sfml/>/lib to the linker extra library path.

MS Build

  • Visual Studio 15 or above
  • VC++ 15 or above

Linux

  • g++ 4.8 or above
  • GNU Make

Building from source

First Method (prefered and used) MS Build

  • Download the source code.

  • Import into Visual Studio

  • Build according to your need (x64 or x86 or whatever)

    Don't forget to link the sfml libraries - graphics, window and system.
    put the following files in linker input:
     sfml-system-d.lib, sfml-window-d.lib, sfml-graphics-d.lib and GameMenu.lib
    
  • Copy the sfml dlls (window, graphics and system) along with the executable

  • Then Run and enjoy

Second Method Makefile

(Build will work, but the application is untested)

  • Download source code
  • cd to directory eg
 $ cd sfml-snake
  • Run make
 $ make
  • the exectable bin/game should apear. The directory will be created if doesn't exist.
  • Run and enjoy

Contribution

  • Lot's of work remaining.
  • In case you are woundering about the extra complication in moving snake - That is done in order to smoothen the animation of movement. To have slower/ variable speed of snake in Higher framerate

Feel free to fork, fix the issues and contribute. Help is always welcome.

Open Source Agenda is not affiliated with "Sfml Snake" Project. README Source: ParadoxZero/sfml-snake
Stars
49
Open Issues
8
Last Commit
3 years ago
License

Open Source Agenda Badge

Open Source Agenda Rating