{"id":15540398,"url":"https://github.com/rm-hull/asteroids","last_synced_at":"2026-05-01T01:31:13.253Z","repository":{"id":209181010,"uuid":"723419725","full_name":"rm-hull/asteroids","owner":"rm-hull","description":"Asteroids, written in Go deployed as WASM","archived":false,"fork":false,"pushed_at":"2026-02-27T18:31:22.000Z","size":4087,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-27T22:49:35.734Z","etag":null,"topics":["arcade-game","github-pages","golang","wasm"],"latest_commit_sha":null,"homepage":"https://www.destructuring-bind.org/asteroids/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rm-hull.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-11-25T15:59:30.000Z","updated_at":"2026-02-27T18:31:23.000Z","dependencies_parsed_at":"2023-12-02T02:21:45.166Z","dependency_job_id":"92325870-7bb8-4de9-b5a6-e19a34a9422d","html_url":"https://github.com/rm-hull/asteroids","commit_stats":null,"previous_names":["rm-hull/asteroids"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rm-hull/asteroids","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm-hull%2Fasteroids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm-hull%2Fasteroids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm-hull%2Fasteroids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm-hull%2Fasteroids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rm-hull","download_url":"https://codeload.github.com/rm-hull/asteroids/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm-hull%2Fasteroids/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32482460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["arcade-game","github-pages","golang","wasm"],"created_at":"2024-10-02T12:13:40.529Z","updated_at":"2026-05-01T01:31:13.236Z","avatar_url":"https://github.com/rm-hull.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Asteroids [![Go Report Card](https://goreportcard.com/badge/github.com/rm-hull/asteroids)](https://goreportcard.com/report/github.com/rm-hull/asteroids)\n\nA modern implementation (in [Golang](https://go.dev/)) of the classic arcade game.\n\n![screenshot](./screenshot.png)\n\nThe game can be compiled natively and run locally, or cross-compiled into [WASM](https://webassembly.org/) and\ndeployed to GitHub Pages. Every time a commit is made on the main branch, a GitHub action deploys a fresh version.\n\n## Running in a browser\n\nYou can play the game online at https://www.destructuring-bind.org/asteroids. A browser with WebGL support is required.\nIt will run on smartphones and iPads, however there is no support yet for non-keyboard input.\n\n## Running locally\n\nInstall the `go` binary (instructions [here](https://go.dev/doc/install)), and:\n\n```\ngo run github.com/rm-hull/asteroids@latest\n```\n\n## Keyboard Controls\n\n\u003ckbd\u003eLEFT-SHIFT\u003c/kbd\u003e or \u003ckbd\u003eSPACE\u003c/kbd\u003e : Fire\n\n\u003ckbd\u003e←\u003c/kbd\u003e or \u003ckbd\u003e→\u003c/kbd\u003e : Rotate left \u0026 right\n\n\u003ckbd\u003e↑\u003c/kbd\u003e : Thrust\n\n\u003ckbd\u003eF\u003c/kbd\u003e : Toggle fullscreen\n\n\u003ckbd\u003eP\u003c/kbd\u003e : Toggle pause\n\n\u003ckbd\u003eQ\u003c/kbd\u003e : Quit\n\n\u003ckbd\u003eR\u003c/kbd\u003e : Restart\n\n## Strategy\n\nPick off the asteroids taking care to mop up exploded fragments. After a while an alien saucer may appear, and will\nstart aiming at you. As you progress through the levels, the asteroid belt gets more dense, and the alien's\nshooting accuracy improves. On starting each level, you will have a few seconds of immunity to get yourself out of\ndanger.\n\nThere is a \"god-mode\" which gives you immortality and your weapon is hugely upgraded from the normal salvo of 3 shots.\nYou'll have to browse the source code to find out how to activate it.\n\n## TODO\n\n- Hyperspace\n- ~~Extra lives at every 10,000~~\n- (Persistent) High score\n- Score wraps round at 100,000 (like the original)\n- Support different sprite sheets\n- Code refactoring / reorganisation / tests\n- Custom key mapppings\n- Touchscreen support\n\n## KNOWN ISSUES\n\n- Fix sound distortion\n\n## References \u0026 Attribution\n\n- https://www.classicgaming.cc/classics/asteroids/play-guide\n- https://arcadeblogger.com/2018/10/24/atari-asteroids-creating-a-vector-arcade-classic/\n- https://mixkit.co/free-sound-effects/arcade/\n- https://threedots.tech/post/making-games-in-go/\n- https://news.ycombinator.com/item?id=38403111\n- https://github.com/sedyh/awesome-ebitengine\n- https://fontstruct.com/fontstructions/download/1534627\n- https://opengameart.org/content/asteroids-vector-style-sprites\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frm-hull%2Fasteroids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frm-hull%2Fasteroids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frm-hull%2Fasteroids/lists"}