Skip to content

A sweet 2D game made using sfml, a open source graphics library.

Notifications You must be signed in to change notification settings

mdloucks/sfml-game-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sfml-game-server

This is the server portion which will actually host and run the game.

If you'd like to see what cool graphics the end user will see, heres the link.
https://github.com/BroManSalaam/sfml-game-client

Care to run this? There is a pre-compiled executable in the project

Care to test it? Follow the steps below.

To compile on windows/mac in various IDE's, go and check out the sfml documentation, it only takes a few minutes to set up.

Mac OS X
http://www.sfml-dev.org/tutorials/2.4/start-osx.php

Windows
http://www.sfml-dev.org/tutorials/2.4/start-vc.php
http://www.sfml-dev.org/tutorials/2.4/start-cb.php

This alternative may work for some of you that have g++-4.8 installed or for all of the poor unfortunate souls using linux... (including me...grumble)


First, be sure you have proper sfml package downloaded according to your OS (windows users take GCC).
http://www.sfml-dev.org/download/sfml/2.4.2/

cd (your preferred install location)

git clone https://github.com/BroManSalaam/TPC

compile using this command into the terminal (Fill in the necessary () fields beforehand) Also be sure your g++ version is one prior to 5.0 or else it will not compile due to the ABI.

g++-4.8 main.cpp Game.cpp Player.cpp EntityManager.cpp Enemy.cpp ImageManagement.cpp Entity.cpp InputManagement.cpp Projectile.cpp -o TheProgrammersCode -std=c++11 -pthread -I (path to sfml/include) -L (path to sfml/lib) -lsfml-network -lsfml-audio -lsfml-graphics -lsfml-window -lsfml-system

execute using this

export LD_LIBRARY_PATH=(path to sfml/lib) && ./TheProgrammersCode


About

A sweet 2D game made using sfml, a open source graphics library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages