- Classical Tetris type of game
- Multiplayer feature
- Live updates/broadcast of all players playing
- Highscores
Demo here
Dependencies for the Server (npm)
cd \<work directory\>
git clone https://github.com/sasadangelo/multiplayer-tetris.git
cd multiplayer-tetris
npm install
To start the Server:
npm start
Point Browser to: http://localhost:6003
(when server starts it shows the exact URL to put in the browser address bar), enter a name and play or watch others currently playing - live.
Play here
In order to show you how to deploy your first application on IBM I cloned this Node.js project from this repository. It is a Tetris multiplayer game you can run on web. I moved the code in the public folder and added some files required for IBM Cloud integration.
-
Create an account on IBM Cloud. For demo purpose you can use the Lite pricing model that
allow you to work for free. The limit is that the application will be removed after 10 days on development inactivity. On Lite pricing model you cannot choice a region different by the one associated to the default space of your account. -
Use "MultiplayerTetris" as application name, "multiplayertetris" as host name. Domain, region, organization and space are set by default. Press the Create button.
-
Download and install IBM Cloud CLI as explained here.
-
cd <work directory>
-
git clone https://github.com/sasadangelo/multiplayer-tetris.git
-
cd <work directory>/multiplayer-tetris
-
bluemix api https://api.<region>.bluemix.net
where <region> is:
- ng, for Dallas;
- eu-gb, for London;
- eu-de, for Frankfurt;
- au-syd, for Sydney;
- us-east, for Washington;
-
bluemix login -u <your email> -o <organization> -s <space>
-
bluemix app push MultiplayerTetris
You can see the MultiplayerTetris demo here.