Repository for the R-Type project
firewall-cmd --add-port=8080/udp --permanent
First :
chmod +x install.sh reBuild.sh
Then if fst compil :
./install.sh [build_type]
[build_type] is an optional flag specifying build type, could be : [Release/Debug/ect]
Else :
./reBuild.sh [should_rm_tmps] [to_forward_flag]
[should_rm_tmps] is an optional flag specifying that tmp files like bins and object files should be removed, could be : Re
[to_forward_flag] is an optional flag specifying build type, could be : [Release/Debug/ect]
-WARN, to_forward_flag should be used only if Re specified-
For local compilation during development:
cmake -B build
cmake --build build
For debugging:
cmake -DCMAKE_BUILD_TYPE=Debug
cmake --build build
The Server has to be launched BEFORE the clients for the connection to work.
./r-type_server SERVER_IP_ADDRESS SERVER_PORT
./r-type_client SERVER_IP_ADDRESS SERVER_PORT
Example to launch game on Localhost:8080
./r-type_server "127.0.0.1" 8080
./r-type_client "127.0.0.1" 8080
To launch on multiple devices:
- have the two machines be connected on the same local network.
- The host needs to gets his ip with a command like ifconfig
- he needs to open up a port using: firewall-cmd --add-port=8080/udp
- The host then opens up the server using his ip and 8080 port, and every connecting client uses these too.
Use english EVERYWHERE !
A pull request needs to be made before merging on dev and main. To create a pull request: - Go on https://github.com/iDommel/RType - Click on the "Pull requests" tab -> "New pull request" - Select dev as "base:" and the branch you want to merge as "compare:" - Click on "Create pull request" - Enter a title and a description for your pull request - Select 2 reviewers fitted to review your code (Reviewers tab is at the right of the description) - Click again on "Create pull request" => Your pull request is created - If one or more reviewers asked for changes, just push your changes and your pull request will update accordingly - Once your pull request is validated by all the reviewers you can click on "Merge pull request" => Your pull request is merged
Conjugated verb in preterit form and in upper case: action Examples -> ADDED: run() function in Core.cpp -> MODIFIED: Entity class in Entity.hpp
To undo last commit and to restore file content to the prevous commit: git reset --hard HEAD^ Same thing but keeping your changes: git reset HEAD^