{"id":23785851,"url":"https://github.com/foxfirecodes/asteroids","last_synced_at":"2025-11-10T22:06:28.655Z","repository":{"id":91319232,"uuid":"162429663","full_name":"foxfirecodes/asteroids","owner":"foxfirecodes","description":"A fun little recreation of the classic Asteroids game in 100% vanilla JavaScript","archived":false,"fork":false,"pushed_at":"2023-12-22T00:07:05.000Z","size":628,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-01T14:07:20.492Z","etag":null,"topics":["asteroids","asteroids-game","game","javascript","recreation","vanilla-js"],"latest_commit_sha":null,"homepage":"https://rayzr.dev/asteroids","language":"JavaScript","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/foxfirecodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2018-12-19T11:45:20.000Z","updated_at":"2023-12-22T00:07:10.000Z","dependencies_parsed_at":"2023-12-22T02:46:19.281Z","dependency_job_id":"2ff1f520-8771-4228-afcf-4ea6582f08d8","html_url":"https://github.com/foxfirecodes/asteroids","commit_stats":null,"previous_names":["foxfirecodes/asteroids"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxfirecodes%2Fasteroids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxfirecodes%2Fasteroids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxfirecodes%2Fasteroids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxfirecodes%2Fasteroids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foxfirecodes","download_url":"https://codeload.github.com/foxfirecodes/asteroids/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240002103,"owners_count":19732164,"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":["asteroids","asteroids-game","game","javascript","recreation","vanilla-js"],"created_at":"2025-01-01T14:07:24.102Z","updated_at":"2025-11-10T22:06:28.347Z","avatar_url":"https://github.com/foxfirecodes.png","language":"JavaScript","readme":"\u003cp align=\"center\"\u003e\r\n  \u003cimg width=\"800px\" src=\".github/img/screenshot.png\" alt=\"screenshot\"\u003e\r\n\u003c/p\u003e\r\n\r\n# Asteroids\r\n\r\n\u003e A fun little recreation of the classic Asteroids game in 100% vanilla JavaScript\r\n\r\n### [Play it now!](https://rayzr.dev/asteroids)\r\n\r\nI honestly just sat down and felt like making this. In total, between far more playtesting than I'd like to admit and the development itself, I spent just under 4 hours on this. All resources are 100% made by me, from audio to \"graphics\" (although no images are used).\r\n\r\nWhile I am aware that my code is not exactly the cleanest, this was a personal exercise for myself in problem solving under time constraints. Too often I overcomplicate things to the point that they are unmanageable. In this situation, I simply decided I would keep writing more lines of code until it worked, rather than coming up with a plan and abstracting all the complicated bits away. And yes, the fact that the file is 420 lines long is very much intentional.\r\n\r\nOn a side note, I also made a fun little AI that plays the game pretty well (got a score of just above 20k once, if I remember correctly): https://gist.github.com/Rayzr522/142b8e60a87ab7c434f47370f5fb875c\r\n\r\nJust paste it in your browser's developer console and it'll start playing :)\r\n\r\n## Features\r\n\r\n- Randomized asteroid shapes\r\n- Score counter\r\n- Effects such as explosions and screen shake\r\n- Sound effects\r\n- Breathtaking 4K graphics\r\n- Ultra highly optimized performance using latest cutting edge technologies\r\n- Did I mention the amazing graphics?\r\n- True retro vibe with nothing but black and white on the entire web page\r\n- Lots of tweakable settings for those of you who know how to use a dev console :)\r\n\r\nIf you have any suggestions for additions or you have an issue to report, please [create an issue report](https://github.com/Rayzr522/Asteroids/issues/new). Thanks!\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxfirecodes%2Fasteroids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxfirecodes%2Fasteroids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxfirecodes%2Fasteroids/lists"}