{"id":20058869,"url":"https://github.com/ably-labs/realtime-multiplayer-space-invaders","last_synced_at":"2025-05-05T15:30:34.138Z","repository":{"id":37819891,"uuid":"265966707","full_name":"ably-labs/realtime-multiplayer-space-invaders","owner":"ably-labs","description":"Realtime Multiplayer Space Invaders Game with Phaser 3 and Ably","archived":false,"fork":false,"pushed_at":"2023-07-12T05:38:20.000Z","size":296,"stargazers_count":69,"open_issues_count":7,"forks_count":32,"subscribers_count":11,"default_branch":"main","last_synced_at":"2024-04-17T15:32:37.044Z","etag":null,"topics":["ably","demo","game","javascript","phaser3","realtime"],"latest_commit_sha":null,"homepage":"https://space-invaders.ably.dev","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ably-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-05-21T22:43:39.000Z","updated_at":"2024-04-02T17:40:26.000Z","dependencies_parsed_at":"2023-01-28T04:00:52.104Z","dependency_job_id":"1793d9c0-6a63-4c0b-a0aa-a5fec80d72f4","html_url":"https://github.com/ably-labs/realtime-multiplayer-space-invaders","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ably-labs%2Frealtime-multiplayer-space-invaders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ably-labs%2Frealtime-multiplayer-space-invaders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ably-labs%2Frealtime-multiplayer-space-invaders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ably-labs%2Frealtime-multiplayer-space-invaders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ably-labs","download_url":"https://codeload.github.com/ably-labs/realtime-multiplayer-space-invaders/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224452840,"owners_count":17313668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ably","demo","game","javascript","phaser3","realtime"],"created_at":"2024-11-13T13:04:42.295Z","updated_at":"2024-11-13T13:04:43.259Z","avatar_url":"https://github.com/ably-labs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](./public/space-invaders-hero.svg)\n\n# Realtime multiplayer game of Space Invaders\n\nThis project runs a realtime multiplayer version of the classic retro game, Space Invaders.\n\n![Preview of the game](https://user-images.githubusercontent.com/5900152/84092843-7ea1ce80-a9f0-11ea-809d-41cd20fb8e59.gif)\n\n## Services/ libraries used in the game\n\n- [Phaser 3](https://phaser.io)\n- [p2 NPM library](https://www.npmjs.com/package/p2)\n- [Ably Realtime](https://www.ably.com) \n\nYou will require an Ably API Key, to run this demo, [sign-up for FREE account](https://ably.com/sign-up)\n\n# How to run this game\n\n1. Create a free account with [Ably Realtime](https://www.ably.com) and obtain an API Key\n1. Clone this repo locally\n1. Navigate to the project folder and run `npm install` to install the dependencies\n1. Rename `.env-sample` to `.env`, then edit the file and add your Ably API key and prefered PORT (default 8080).\n1. (Optional) You can update the `MIN_PLAYERS_TO_START_GAME` to enforce a minimum number of players. (see `server-worker.js`)\n1. Run the server with `node server.js` and then open a brower to [localhost:8080](http://localhost:8080)\n\nRead the full blog post series on [dev.to](https://dev.to/ably/building-a-realtime-multiplayer-browser-game-in-less-than-a-day-part-1-4-14pm).\n\nPlease [reach out to me on Twitter](https://www.twitter.com/Srushtika) for any questions, \nor follow us [@ablyrealtime](https://twitter.com/ablyrealtime)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fably-labs%2Frealtime-multiplayer-space-invaders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fably-labs%2Frealtime-multiplayer-space-invaders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fably-labs%2Frealtime-multiplayer-space-invaders/lists"}