A 3rd year Epitech Project.
This project aims to create an online multiplayer R-Type game. We had to implement a multi-threaded server using Asio and a graphical client in SFML.
For the one unfamliar with the R-TYPE genre, here is a bit about it.
-
Install Conan
-
Compile on your os:
Linux && MacOS :
$ ./comp_linux.sh
Windows:
$ ./comp_windows.sh
After having compiled on your OS, you can generate the binary package by executing :
$ cmake --build build --target package
After having compiled on your OS, you can generate the installer by executing :
- Windows (.msi)
$ ./windows_installer.sh
- Linux (.deb)
$ ./linux_installer.sh
$ ./build/bin/Server-Rtype
$ ./build/bin/Client-Rtype
or
$ sudo docker build . -t test_v2_dock && sudo docker run --rm -it test_v2_dock
The audio libraries may have weird installs on some linux distros, if that's the case, then run these lines
$ ln -s /usr/lib64/alsa-lib/ ~/.conan/data/libalsa/1.2.7.2/_/_/package/45572951e04977fe87dc4117ce69daf41aa9589c/lib/
$ ln -s /usr/lib64/pkgconfig/ ~/.conan/data/libalsa/1.2.7.2/_/_/package/45572951e04977fe87dc4117ce69daf41aa9589c/lib/
and then, every time you open a new terminal:
$ export ALSA_CONFIG_DIR=/usr/share/alsa
OR, you can just run the fix_audio.sh
script and add -first
if its your first time executing it.
When running multiple clients at the same time, if you input something on one window and then unfocus it, it will keep repeating the input.
The team is composed of :