Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mylo54/rtype
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.
https://github.com/mylo54/rtype
cmake conan cpp linux macos rtype-game sfml windows
Last synced: 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/mylo54/rtype
- Owner: Mylo54
- License: other
- Created: 2022-09-23T09:41:27.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-15T13:52:30.000Z (about 2 years ago)
- Last Synced: 2024-10-09T19:22:54.663Z (2 months ago)
- Topics: cmake, conan, cpp, linux, macos, rtype-game, sfml, windows
- Language: C++
- Homepage: https://codedocs.xyz/Mylo54/Rtype
- Size: 14.7 MB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# R-TYPE
[![Linux compile](https://github.com/Mylo54/Rtype/actions/workflows/test_linux_compile.yml/badge.svg?branch=master)](https://github.com/Mylo54/Rtype/actions/workflows/test_linux_compile.yml)
[![Windows compile](https://github.com/Mylo54/Rtype/actions/workflows/test_windows_compile.yml/badge.svg?branch=master)](https://github.com/Mylo54/Rtype/actions/workflows/test_windows_compile.yml)
[![MacOS compile](https://github.com/Mylo54/Rtype/actions/workflows/test_macos_compile.yml/badge.svg?branch=master)](https://github.com/Mylo54/Rtype/actions/workflows/test_macos_compile.yml)
[![Mirroring](https://github.com/Mylo54/Rtype/actions/workflows/push_on_teck.yml/badge.svg?branch=master)](https://github.com/Mylo54/Rtype/actions/workflows/push_on_teck.yml)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](http://www.hardcoregaming101.net/r-type/).
## Installation :
1. Install Conan
2. Compile on your os:
**Linux && MacOS :**
``` bash
$ ./comp_linux.sh
```**Windows:**
``` bash
$ ./comp_windows.sh
```### Binary Packaging
After having compiled on your OS, you can generate the binary package by executing :
``` bash
$ cmake --build build --target package
```
### INSTALLERSAfter having compiled on your OS, you can generate the installer by executing :
1. Windows (.msi)
``` bash
$ ./windows_installer.sh
```2. Linux (.deb)
``` bash
$ ./linux_installer.sh
```## Execution :
### Client
``` bash
$ ./build/bin/Server-Rtype
```### Server
``` bash
$ ./build/bin/Client-Rtype
```or
``` bash
$ sudo docker build . -t test_v2_dock && sudo docker run --rm -it test_v2_dock
```## Known issues :
### Alsa-lib
The audio libraries may have weird installs on some linux distros, if that's the case, then run these lines
``` bash
$ 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:
``` bash
$ 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.
### Multiple clients on same system :
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.
## Team :
The team is composed of :