{"id":15138136,"url":"https://github.com/klihe/asteroids-pygame","last_synced_at":"2026-01-22T01:34:26.196Z","repository":{"id":215701450,"uuid":"739409363","full_name":"Klihe/Asteroids-PyGame","owner":"Klihe","description":"A simple game of shooting asteroids with a rocket and getting a points","archived":false,"fork":false,"pushed_at":"2024-06-22T13:51:22.000Z","size":85,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T20:49:06.796Z","etag":null,"topics":["asteroids","game","pygame","python","rocket"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Klihe.png","metadata":{"files":{"readme":"readme.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-05T13:53:46.000Z","updated_at":"2024-06-22T13:45:21.000Z","dependencies_parsed_at":"2024-06-22T19:46:05.618Z","dependency_job_id":null,"html_url":"https://github.com/Klihe/Asteroids-PyGame","commit_stats":null,"previous_names":["klihe/pygame-asteroids","klihe/asteroids-pygame"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Klihe%2FAsteroids-PyGame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Klihe%2FAsteroids-PyGame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Klihe%2FAsteroids-PyGame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Klihe%2FAsteroids-PyGame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Klihe","download_url":"https://codeload.github.com/Klihe/Asteroids-PyGame/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248259293,"owners_count":21074100,"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","game","pygame","python","rocket"],"created_at":"2024-09-26T07:20:50.744Z","updated_at":"2026-01-22T01:34:26.166Z","avatar_url":"https://github.com/Klihe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Asteroids-PyGame\n\nA simple game of shooting asteroids with a rocket and getting a points\n\n## Requirements\n\n- [pygame](https://www.pygame.org/wiki/GettingStarted)\n\n## Run\n\n### MacOS/Linux\n\n```bash\npython3 main.py\n```\n\n### Windows\n\n```bash\npython main.py\n```\n\n## Controls\n\nESC - escape game\n\nw - up  \nd - down  \na - right  \ns - left  \n\nspace - fire  \nr - reload\n\n## States of game\n\n- MENU - until you click on start button\n- PLAYING - until you die\n- GAME OVER - show best local score\n\n## Objects\n\n### Player\n\n```python\nself.angle = 0\n\nself.score = 0\n\n# hit asteroids with your body\nself.body_damage = 15\n\nself.health = 100\n\nself.rotation_speed_current = 0\nself.movement_speed_current = 2.5\nself.movement_speed_max = 10\n```\n\n### Projectile\n\n```python\n# get angle from rocket\nself.angle = angle\n\nself.movement_speed = 25 + speed\nself.damage = 15\n```\n\n### Asteroids\n\n```python\nif self.size == \"small\":\n    self.health = 15\n    self.damage = 10\n    self.score = 5\nelif self.size == \"medium\":\n    self.health = 30\n    self.damage = 15\n    self.score = 10\nelif self.size == \"large\":\n    self.health = 45       \n    self.damage = 20\n    self.score = 15\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklihe%2Fasteroids-pygame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklihe%2Fasteroids-pygame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklihe%2Fasteroids-pygame/lists"}