{"id":13442627,"url":"https://github.com/andyhd/asteroids","last_synced_at":"2026-01-11T06:41:25.299Z","repository":{"id":4339477,"uuid":"5475260","full_name":"andyhd/asteroids","owner":"andyhd","description":"Asteroids game in Common Lisp","archived":false,"fork":false,"pushed_at":"2018-07-27T09:41:45.000Z","size":44,"stargazers_count":116,"open_issues_count":1,"forks_count":23,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-03-20T14:41:23.194Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Common Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andyhd.png","metadata":{"files":{"readme":"README.mdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-19T23:41:20.000Z","updated_at":"2025-02-02T12:16:12.000Z","dependencies_parsed_at":"2022-07-31T12:08:04.599Z","dependency_job_id":null,"html_url":"https://github.com/andyhd/asteroids","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andyhd/asteroids","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyhd%2Fasteroids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyhd%2Fasteroids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyhd%2Fasteroids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyhd%2Fasteroids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andyhd","download_url":"https://codeload.github.com/andyhd/asteroids/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyhd%2Fasteroids/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28295755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T04:44:51.577Z","status":"ssl_error","status_checked_at":"2026-01-11T04:44:44.232Z","response_time":60,"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":[],"created_at":"2024-07-31T03:01:48.241Z","updated_at":"2026-01-11T06:41:25.266Z","avatar_url":"https://github.com/andyhd.png","language":"Common Lisp","readme":"ASTeroids\n=========\n\nA simple Asteroids clone, inspired by [Square Shooter by No Time To Play][1],\nbut written in Common Lisp with Lispbuilder-SDL.\n\nWhy?\n----\n\nI'm learning Common Lisp this year, and it seemed like a fun project. It was.\n\n**UPDATE**\n\nWow, I made the front page of Hacker News!\n\nI read a few questions there and on /r/programming about why I did this, and it\nreally was just a fun learning project, partly in response to an article I read\nabout refactoring the original Python version.\n\nThanks to everyone for the generally positive feedback!\n\nI wasn't trying to fit it into 600 LOC or trying to make a very clean or fast\nimplementation.\n\nThe code is quite un-Lispy because I'm only about 4 months into learning Lisp\nand this is a translation from a Python codebase, rather than starting from\nscratch. I also wanted to learn a bit of CLOS. I haven't really tried any\nmacro programming yet.\n\nI did write it using Vim, because that's what I'm used to, and I haven't got\ninto Emacs and Slime yet. It's difficult to switch, but I will give it a try.\n\nThere aren't many inline comments, I'm not a fan of them. I prefer my code to\nbe self documenting as far as possible.\n\nWhy are the first three letters of ASTeroids capitalized?\n---------------------------------------------------------\n\nIt's a pun on Abstract Syntax Tree - which Lisp essentially is. Sorry.\n\nHow do I play it?\n-----------------\n\nYou'll need to install [Steel Bank Common Lisp][2] and [the\nQuicklisp package tool][3], which is pretty easy.\n\nI've also tested with Clozure CL.\n\nI used [Homebrew][4] to install SDL and SDL_gfx on my Mac.\n\nStart SBCL and type the following at the REPL prompt:\n```lisp\n(sb-ext::set-floating-point-modes :traps nil)\n(load \"asteroids.lisp\")\n```\n\nQuicklisp will then install some dependencies. When Quicklisp tries to install Lispbuilder-SDL, it may fail\nand complain about CocoaBuilder. You have to manually compile it:\n```sh\ncd ~/quicklisp/dists/quicklisp/software/lispbuilder-20130312-svn/lispbuilder-sdl/cocoahelper\nmake\n```\nThen retry loading asteroids.lisp\n\nOnce that is done, you can start the game from the REPL with:\n```lisp\n(asteroids:main)\n```\n\nThe game is mouse controlled.\n\n\nWhat does it look like?\n-----------------------\n\nA bit rubbish, really. Next steps are learning some OpenGL to make it a bit\nprettier.\n\n![ASTeroids screenshot](screenshot.png)\n\n[1]: http://notimetoplay.org/our-games/square-shooter/\n[2]: http://www.sbcl.org/\n[3]: http://www.quicklisp.org/\n[4]: http://mxcl.github.com/homebrew/\n","funding_links":[],"categories":["Common Lisp","Applications"],"sub_categories":["Games"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyhd%2Fasteroids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandyhd%2Fasteroids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyhd%2Fasteroids/lists"}