FEDORA : sudo dnf install gcc-c++ glew-devel glfw-devel SDL2-devel SDL2_image-devel openal-soft-devel freealut-devel freeglut-devel libjsoncpp-devel
DEBIAN : sudo apt install g++ mesa-utils libglew-dev libglfw3-dev libsdl2-dev libsdl2-image-dev libopenal-dev libalut-dev freeglut3-dev libjsoncpp-dev
This is a two part project :
- Build :
make main - Run :
make run
Tips : Type 'p' to switch between first-person and third-person perpective !
- Build :
make build-serv - Run :
make run-serv
- Clean :
make clean
You just need to edit
server_config.jsonfile
Default server_config.json:
{
"name":"La marre (au canard)",
"max_player": 3,
"objects":
[
{"type":"duck", "position":{"x":-5,"y":0,"z":-10}, "direction":{"x":0,"y":0,"z":0}},
{"type":"horse", "position":{"x":5,"y":1,"z":-10}, "direction":{"x":0,"y":90,"z":0}},
{"type":"penguin", "position":{"x":10,"y":0,"z":-10}, "direction":{"x":0,"y":0,"z":0}}
]
}The type of the object must be in lower case, the coordinates of the position are real and the direction is in degrees.
- DUCK (6640 polygons)
- CAT (35288 polygons)
- HORSE (6016 polygons)
- LION (64536 polygons)
- PENGUIN (5766 polygons)
- MONKEY (47488 polygons)
