Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Latest commit

 

History

History
32 lines (21 loc) · 1.49 KB

File metadata and controls

32 lines (21 loc) · 1.49 KB

Important

This project is no longer being maintained as of March 2026.

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

You will require an Ably API Key, to run this demo, sign-up for FREE account

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. Rename .env-sample to .env, then edit the file and add your Ably API key and prefered PORT (default 8080).
  5. (Optional) You can update the MIN_PLAYERS_TO_START_GAME to enforce a minimum number of players. (see server-worker.js)
  6. Run the server with node server.js and then open a brower to localhost:8080

Read the full blog post series on dev.to.

Please reach out to me on Twitter for any questions, or follow us @ablyrealtime