GithubHelp home page GithubHelp logo

sasadangelo / multiplayer-tetris Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhongdeliu/multiplayer-tetris

0.0 3.0 0.0 169 KB

Multiplayer Javascript Tetris

Home Page: https://multiplayertetris.eu-gb.mybluemix.net/

License: MIT License

JavaScript 95.63% CSS 0.40% HTML 3.97%

multiplayer-tetris's Introduction

Multiplayer Tetris

  • Classical Tetris type of game
  • Multiplayer feature
  • Live updates/broadcast of all players playing
  • Highscores

Demo here

Development/Setup

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

How to deploy Tetris on IBM Cloud

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.

Instructions to deploy Multiplayer Tetris on IBM Cloud

  1. 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.

  2. Use "MultiplayerTetris" as application name, "multiplayertetris" as host name. Domain, region, organization and space are set by default. Press the Create button.

  3. Download and install IBM Cloud CLI as explained here.

  4. cd <work directory>

  5. git clone https://github.com/sasadangelo/multiplayer-tetris.git

  6. cd <work directory>/multiplayer-tetris

  7. 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;
  8. bluemix login -u <your email> -o <organization> -s <space>

  9. bluemix app push MultiplayerTetris

You can see the MultiplayerTetris demo here.

multiplayer-tetris's People

Contributors

sasadangelo avatar sasadangeloibm avatar zhongdeliu avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.