Skip to content

nitzel/pb_mp

Repository files navigation

Planet Battle Multiplayer

Join the chat at https://gitter.im/dmalatesta/spaceterm

A Planet Battle 3 clone to implement multiplayer in this fun game!

Compiling

Requires: glfw3, ENet

Visual Studio

  • Install vcpkg to manage the libraries on Windows
    • Run vcpkg integrate install so that Visual Studio will find the includes and libraries on its own
    • Or update the project's Properties -> VC++ Directories -> Include/Library Directories to your path of vcpkg
  • Install the required librariesvcpkg install glfw3:x64-windows enet:x64-windows

make

  • Install enet and glfw e.g. via apt-get or by compiling them yourself. Make sure the comiler knows where they are. (-I)
  • Run make

Running

  • Built with Visual Studio: Run the executable via Visual Studio or from the x64/Debug or x64/Release folder with the working directory being above src
  • Built with make: Run the executable. The game will not begin until there are two clients connected to the server, so make sure you start the game as client twice or have a friend that connects, too. To start the game as a client or as a sever you can use the console paramters -c and -s respectively or just run it up and enter the configuration in the console. The settings.ini file must be used to configure the window size, network port and server IP or name.

ToDo

  • another todolist
  • All :)
  • Check if it compiles on
    • linux
    • mac
    • windows
  • Finish the server
  • Finish the client
  • Attempt to make the code look clean
    • die trying 💔

Credits

  • Inspiration: Planet Battle 3

  • stb_image library by Sean Barret

  • glfw3 awesome cross os lib for GL setup and window creation

  • ENet networking library. (un-)reliable packets via UDP.

  • inih by Ben Hoyt to read ini files.

Releases

No releases published

Packages

No packages published