A Planet Battle 3 clone to implement multiplayer in this fun game!
- Install vcpkg to manage the libraries on Windows
- Run
vcpkg integrate installso that Visual Studio will find the includes and libraries on its own - Or update the project's
Properties -> VC++ Directories -> Include/Library Directoriesto your path ofvcpkg
- Run
- Install the required libraries
vcpkg install glfw3:x64-windows enet:x64-windows
- Install
enetandglfwe.g. viaapt-getor by compiling them yourself. Make sure the comiler knows where they are. (-I) - Run
make
- Built with Visual Studio: Run the executable via Visual Studio or from the
x64/Debugorx64/Releasefolder with the working directory being abovesrc - 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
-cand-srespectively or just run it up and enter the configuration in the console. Thesettings.inifile must be used to configure the window size, network port and server IP or name.
- 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 💔
-
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.