/realtime-multiplayer-space-invaders

Realtime Multiplayer Space Invaders Game with Phaser 3 and Ably

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Realtime multiplayer game of Space Invaders

This project runs a realtime multiplayer version of the classic retro game, Space Invaders.

Preview of the game

Services/ libraries used in the game

How to run this game

  1. Create a free account with Ably Realtime and obtain an API Key
  2. Clone this repo locally
  3. Navigate to the project folder and run npm install to install the dependencies
  4. In the server.js file, update the ABLY_API_KEY variable with your own API Key, preferably via a .env file
  5. Again in the server.js file, update process.env.PORT to use a port number of your choice directly or add a PORT variable in your .env file
  6. You can also update the MIN_PLAYERS_TO_START_GAME if you'd like to have more than three people play the game

Please reach out to me on Twitter for any questions.