{"id":13526159,"url":"https://github.com/tasdikrahman/spaceShooter","last_synced_at":"2025-04-01T06:31:24.757Z","repository":{"id":54703722,"uuid":"49824725","full_name":"tasdikrahman/spaceShooter","owner":"tasdikrahman","description":":video_game: The classic retro game recreated using Pygame and python","archived":true,"fork":false,"pushed_at":"2022-09-09T08:43:20.000Z","size":2881,"stargazers_count":505,"open_issues_count":13,"forks_count":233,"subscribers_count":28,"default_branch":"master","last_synced_at":"2024-06-12T08:27:57.947Z","etag":null,"topics":["linux","pygame","python","rpg-game","windows"],"latest_commit_sha":null,"homepage":"http://tasdikrahman.me/2016/02/02/Making-of-space-Shooter-using-pygame/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tasdikrahman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-17T16:13:13.000Z","updated_at":"2024-06-12T08:27:57.948Z","dependencies_parsed_at":"2022-08-14T00:31:12.064Z","dependency_job_id":null,"html_url":"https://github.com/tasdikrahman/spaceShooter","commit_stats":null,"previous_names":["prodicus/spaceshooter"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tasdikrahman%2FspaceShooter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tasdikrahman%2FspaceShooter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tasdikrahman%2FspaceShooter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tasdikrahman%2FspaceShooter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tasdikrahman","download_url":"https://codeload.github.com/tasdikrahman/spaceShooter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246596912,"owners_count":20802923,"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":["linux","pygame","python","rpg-game","windows"],"created_at":"2024-08-01T06:01:25.947Z","updated_at":"2025-04-01T06:31:22.235Z","avatar_url":"https://github.com/tasdikrahman.png","language":"Python","funding_links":["https://paypal.me/tasdik","https://www.patreon.com/tasdikrahman"],"categories":["Native"],"sub_categories":["Arcade"],"readme":"## Space Shooter\n\nThe classic retro game recreated using `Pygame` and `python`.\n\n\u003ca href=\"https://news.ycombinator.com/item?id=10925168\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/wingify/across-tabs/master/images/hn.png\" width=\"150\" height=\"20\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://www.producthunt.com/posts/space-shooter\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/wingify/across-tabs/master/images/product_hunt.png\" width=\"100\" height=\"20\"/\u003e\u003c/a\u003e\n\n\n## Index\n\n- [Demo](https://github.com/tasdikrahman/spaceShooter#demo)\n  - [Screenshots](https://github.com/tasdikrahman/spaceShooter#screenshots)\n- [Game Features](https://github.com/tasdikrahman/spaceShooter#game-features)\n  - [Controls](https://github.com/tasdikrahman/spaceShooter#controls)\n- [Installation](https://github.com/tasdikrahman/spaceShooter#installation)\n  - [For Windows](https://github.com/tasdikrahman/spaceShooter#for-windows)\n  - [Linux/Debian based systems](https://github.com/tasdikrahman/spaceShooter#linuxdebian-based-systems)\n    - [Option 1: Download the zipped executable file](https://github.com/tasdikrahman/spaceShooter#option-1-download-the-zipped-executable-file)\n    - [Option 2: Build from source](https://github.com/tasdikrahman/spaceShooter#option-2-build-from-source)\n  - [For MAC OS X](https://github.com/tasdikrahman/spaceShooter#for-mac-os-x)\n- [Contributing](https://github.com/tasdikrahman/spaceShooter#contributing)\n  - [Contributers](https://github.com/tasdikrahman/spaceShooter#contributers)\n  - [To-do](https://github.com/tasdikrahman/spaceShooter#to-do)\n- [Issues](https://github.com/tasdikrahman/spaceShooter#issues)\n- [Credits](https://github.com/tasdikrahman/spaceShooter#credits)\n- [Similar](https://github.com/tasdikrahman/spaceShooter#similar)\n- [License](https://github.com/tasdikrahman/spaceShooter#license)\n- [Donation](https://github.com/tasdikrahman/spaceShooter#donation)\n\n## Demo\n\n[[Back to top]](https://github.com/tasdikrahman/spaceShooter#index)\n\nFollow the youtube video to see how I fared on ``spaceShooter``\n\n[![Space Shooter Demo - Youtube](http://i.imgur.com/bHjlJfG.jpg)](https://www.youtube.com/watch?v=o99zpLsM-ZI)\n\n## Screenshots\n\n[[Back to top]](https://github.com/tasdikrahman/spaceShooter#index)\n\n| ![Screen 1](http://i.imgur.com/3MzfmbT.jpg) | ![Screen 2](http://i.imgur.com/4OgIByR.png) |\n|---------------------------------------------|---------------------------------------------|\n| ![Screen 3](http://i.imgur.com/PFQJjE8.png) | ![Screen 4](http://i.imgur.com/lV4aIur.png) |\n\n## Game Features\n\n[[Back to top]](https://github.com/tasdikrahman/spaceShooter#index)\n\n- Health bar for the space ship\n- Score board to show how you are faring so far\n- Power ups like\n  - shield: increases the space ships life\n  - bolt: increases the shooting capability of the ship by firing 2 to 3 bullets instead of one at time.\n- Custom sounds and sprite animation for things like\n  - meteorite explosion\n  - bullet shoots\n  - player explosion\n- 3 lives per game\n- Fun to play :)\n\n## Controls\n\n[[Back to top]](https://github.com/tasdikrahman/spaceShooter#index)\n\n|              | Button              |\n|--------------|---------------------|\n| Move Left    | \u003ckbd\u003eleft\u003c/kbd\u003e     |\n| Move right   | \u003ckbd\u003eright\u003c/kbd\u003e    |\n| Fire bullets | \u003ckbd\u003espacebar\u003c/kbd\u003e |\n| Quit game    | \u003ckbd\u003eEsc\u003c/kbd\u003e      |\n\n## Installation\n\n[[Back to top]](https://github.com/tasdikrahman/spaceShooter#index)\n\n### For `Windows`\n\n- :arrow_down: [Download the prebuilt zip file and unzip it.](https://github.com/tasdikrahman/spaceShooter/releases/latest)\n- Run the executable named `spaceShooter` inside the extracted file.\n\n### `Linux/Debian` based systems\n\n#### Option 1: Download the zipped executable file\n\n- :arrow_down: [Download the latest zip file for linux](https://github.com/tasdikrahman/spaceShooter/releases/latest)\n- Unzip the file\n\nIf your download was saved on the `~/Downloads` folder\n\nPress \u003ckbd\u003eCtrl\u003c/kbd\u003e + \u003ckbd\u003eAlt\u003c/kbd\u003e + \u003ckbd\u003eT\u003c/kbd\u003e to open the shell if you are on `GNU/Linux` based systems and type\n\n```bash\n$ unzip ~/Downloads/SpaceShooter-0.0.3.Linux.zip -d ~/Desktop\n$ cd ~/Desktop\n$ ## navigate to the unzipped file and change the file permissions for the executable\n~/Desktop $ chmod +x spaceShooter\n~/Desktop $ ./spaceShooter\n```\n\nThis will unzip the file on your `Desktop`, you can replace it with the directory of your choice\n\n**NOTE** : If it gives you an error, you probably don't have `unzip` installed in your system.\n\n```bash\n$ sudo apt-get install unzip\n```\nThat should fix the error.\n\n- Run the executable named `spaceShooter`\n\nA Similar process would be followed for `OS X`\n\n#### Option 2: Build from source\n\nYou need to have `pygame` installed for this option. \n\n### For `FreeBSD`\n\n```sh\n$ sudo pkg install devel/py-game\n```\n\n##### Clone the repo\n```sh\n$ git clone https://github.com/tasdikrahman/spaceShooter.git\n$ cd spaceShooter/\n$ chmod +x spaceShooter.py\n$ python spaceShooter.py\n```\n\n\n### For `Ubuntu/Debian`\n\n```bash\n$ sudo apt-get install python-pygame\n```\n\n##### Clone the repo\n\n```bash\n$ git clone https://github.com/tasdikrahman/spaceShooter.git\n$ cd spaceShooter/ \n$ python spaceShooter.py\n```\n\n### For `MAC OS X` \n\nYou have to build from source to get it up and running on `OS X`. Reason?\nI don't have an `OS X` system to build the executable! So I would love for a Pull request on that one.\n\nBuilding from source will do the trick though\n\n\n```bash\n$ pip3 install hg+http://bitbucket.org/pygame/pygame\n```\n\nInstall Pygame specific dependencies\n\n```bash\n$ brew install sdl sdl_image sdl_ttf portmidi libogg libvorbis\n$ brew install sdl_mixer --with-libvorbis\n```\n\n##### Clone the repo\n\n```bash\n$ git clone https://github.com/tasdikrahman/spaceShooter.git\n$ cd spaceShooter/ \n$ python spaceShooter.py\n```\n\n## Contributing\n\n[[Back to top]](https://github.com/tasdikrahman/spaceShooter#index)\n\nThis game was written in one day, so the coding standards might not be up the mark. Don't be shy to make a Pull request :)\n\nFor details, please refer [the Contributing page](https://github.com/tasdikrahman/spaceShooter/blob/master/CONTRIBUTING.rst)\n\n### Contributers\n\n[[Back to top]](https://github.com/tasdikrahman/spaceShooter#index)\n\n- [@bardlean86](https://github.com/bardlean86/) for adding the third missile powerup and the main menu\n\n### To-do\n\n[[Back to top]](https://github.com/tasdikrahman/spaceShooter#index)\n\n- [x] Add the `windows` executable file\n- [x] Add main menu for the game\n- [x] Fix [bug](https://github.com/tasdikrahman/spaceShooter/blob/master/spaceShooter.py#L372) which stops the background music from looping \n- [x] Add support for `WAV` game music file as `ogg` format is not playable as described in [#1](https://github.com/tasdikrahman/spaceShooter/issues/1)\n- [ ] Add feature to pause to the game.\n- [ ] add feature to replay the game after all players die\n- [ ] Add `OS X` executable file as the `Debian` based one fails to execute on it\n\n\n## Issues\n\n[[Back to top]](https://github.com/tasdikrahman/spaceShooter#index)\n\nYou can report the bugs at the [issue tracker](https://github.com/tasdikrahman/spaceShooter/issues)\n\n**OR**\n\nYou can [tweet me](https://twitter.com/tasdikrahman) if you can't get it to work. In fact, you should tweet me anyway.\n\n## Credits\n\nThe game is a fork of the video instructions given by KidsCanCode. I have made several additional enhancements to it. Do check out their [Channel](https://www.youtube.com/channel/UCNaPQ5uLX5iIEHUCLmfAgKg)!\n\n## Similar\n\n[[Back to top]](https://github.com/tasdikrahman/spaceShooter#index)\n\n- [Bullethell.py ](https://github.com/Frederikxyz/bullethell.py) : A fork of [tasdikrahman/spaceShooter](https://github.com/tasdikrahman/spaceShooter) which adds fancy shooting capabilities\n\n## License\n\n[[Back to top]](https://github.com/tasdikrahman/spaceShooter#index)\n\nBuilt with ♥ by [Tasdik Rahman](http://tasdikrahman.me)[(@tasdikrahman)](https://twitter.com/tasdikrahman) under [MIT License](http://tasdikrahman.mit-license.org)\n\nYou can find a copy of the License at http://tasdikrahman.mit-license.org/\n\n- The images used in the game are taken from [http://opengameart.org/](http://opengameart.org/), more particulary from the [Space shooter content pack](http://opengameart.org/content/space-shooter-redux) from [@kenney](http://opengameart.org/users/kenney).\n\nLicense for them is in `Public Domain`\n\n- The game sounds were again taken from [http://opengameart.org/](http://opengameart.org/). The game music, [Frozen Jam](http://opengameart.org/content/frozen-jam-seamless-loop) by [tgfcoder](https://twitter.com/tgfcoder) licensed under [CC-BY-3](http://creativecommons.org/licenses/by/3.0/)\n\n## Donation\n\n[[Back to top]](https://github.com/tasdikrahman/spaceShooter#index)\n\nIf you have found my little bits of software being of any use to you, do consider helping me pay my internet bills :)\n\n| PayPal | \u003ca href=\"https://paypal.me/tasdik\" target=\"_blank\"\u003e\u003cimg src=\"https://www.paypalobjects.com/webstatic/mktg/logo/AM_mc_vs_dc_ae.jpg\" alt=\"Donate via PayPal!\" title=\"Donate via PayPal!\" /\u003e\u003c/a\u003e |\n|:-------------------------------------------:|:-------------------------------------------------------------:|\n| Gratipay  | \u003ca href=\"https://gratipay.com/tasdikrahman/\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.rawgit.com/gratipay/gratipay-badge/2.3.0/dist/gratipay.png\" alt=\"Support via Gratipay\" title=\"Support via Gratipay\" /\u003e\u003c/a\u003e |\n| Patreon | \u003ca href=\"https://www.patreon.com/tasdikrahman\" target=\"_blank\"\u003e\u003cimg src=\"http://i.imgur.com/ICWPFOs.png\" alt=\"Support me on Patreon\" title=\"Support me on Patreon\" /\u003e\u003c/a\u003e |\n| £ (GBP) | \u003ca href=\"https://transferwise.com/pay/d804d854-6862-4127-afdd-4687d64cbd28\" target=\"_blank\"\u003e\u003cimg src=\"http://i.imgur.com/ARJfowA.png\" alt=\"Donate via TransferWise!\" title=\"Donate via TransferWise!\" /\u003e\u003c/a\u003e |\n| € Euros | \u003ca href=\"https://transferwise.com/pay/64c586e3-ec99-4be8-af0b-59241f7b9b79\" target=\"_blank\"\u003e\u003cimg src=\"http://i.imgur.com/ARJfowA.png\" alt=\"Donate via TransferWise!\" title=\"Donate via TransferWise!\" /\u003e\u003c/a\u003e |\n| ₹ (INR)  | \u003ca href=\"https://www.instamojo.com/@tasdikrahman\" target=\"_blank\"\u003e\u003cimg src=\"https://www.soldermall.com/images/pic-online-payment.jpg\" alt=\"Donate via instamojo\" title=\"Donate via instamojo\" /\u003e\u003c/a\u003e |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftasdikrahman%2FspaceShooter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftasdikrahman%2FspaceShooter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftasdikrahman%2FspaceShooter/lists"}