realtime-multiplayer-space-invaders
realtime-multiplayer-space-invaders copied to clipboard
Realtime Multiplayer Space Invaders Game with Phaser 3 and Ably
Realtime multiplayer game of Space Invaders
This project runs a realtime multiplayer version of the classic retro game, Space Invaders.

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
- Create a free account with Ably Realtime and obtain an API Key
- Clone this repo locally
- Navigate to the project folder and run
npm installto install the dependencies - Rename
.env-sampleto.env, then edit the file and add your Ably API key and prefered PORT (default 8080). - (Optional) You can update the
MIN_PLAYERS_TO_START_GAMEto enforce a minimum number of players. (seeserver-worker.js) - Run the server with
node server.jsand 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