In the client
and also server
directory install all required packages:
$ cd client
$ npm install
$ cd ../server
$ npm install
Run the server in the server
directory:
$ cd server
$ npm start
Next, run the client in the client
directory:
$ cd client
$ npm start
Open http://localhost:8080 to view it in the browser.
All server-sided logs will appear in your server terminal.
Firstly, you need to set up your nickname.
Then, choose a lobby from room list or create your own room.
You can move by using arrow keys
and plant a bomb by using spacebar
.
As a player, you initially have only 3 lives. You need to be careful with them. Any contact with an explosion will remove one life from you. On right panel (playerlist) you can check how many lives do you - or other players - have.
Soo, this is a bomb. You know what it does, right? After planting you have 3 seconds to run away from it. Otherwise one of your remaining lives will be taken.
There are two types of blocks:
Wall block - non-breakable - It's just to make game harder and more interesting. You can't break it but you can easily hide behind.
Bonus block - breakable - After you break it there is a 40% chance that it's empty, 30% chance for speed boost and also 30% chance for cooldown reduction.
We can't tell you much about bonuses yet. For now all you need to know that one of them is increasing your speed by 0.5 and the other one decreasing your bomb cooldown by 0.5s.