This project runs a realtime multiplayer version of the classic retro game, Space Invaders.
- Create a free account with Ably Realtime and obtain an API Key
- Clone this repo locally
- Navigate to the project folder and run
npm install
to install the dependencies - In the
server.js
file, update theABLY_API_KEY
variable with your own API Key, preferably via a .env file - Again in the
server.js
file, updateprocess.env.PORT
to use a port number of your choice directly or add aPORT
variable in your .env file - 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.