Clone this repo and build the project with the Stack:
git clone https://github.com/cmc-haskell-2016/asteroids.git<br />
cd asteroids
stack setup
The game consists of server and client apps. The one should launch the server
and connect using the client.
stack build && stack exec server "port" "game mode"
stack build && stack exec client "ip" "port"
You can use the scripts coming with the project as follows:
./server.sh "port" "game mode"
./client.sh "ip" "port"
The game mode is either single or cooperative. Cooperative needs exactly 2
players. In single mode you need to survive by shooting the asteroids. If you
bump into one you die. The same happens if you leave the playing area. You have
special shield that destroys asteroids when enabled.
In the cooperative you do pretty much the same but together with you friend.
The death of one of the players leads to the Game Over for everyone.
The server can process only one game session at once.
Up - accelerate
Left - rotate left
Right - rotate right
S - enable shield
Space - shoot
R - restart game
Esc - quit