## Space Shooter
The classic retro game recreated using `Pygame` and `python`.
## Index
- [Demo](https://github.com/prodicus/spaceShooter#demo)
- [Screenshots](https://github.com/prodicus/spaceShooter#screenshots)
- [Game Features](https://github.com/prodicus/spaceShooter#game-features)
- [Controls](https://github.com/prodicus/spaceShooter#controls)
- [Installation](https://github.com/prodicus/spaceShooter#installation)
- [For Windows](https://github.com/prodicus/spaceShooter#for-windows)
- [Linux/Debian based systems](https://github.com/prodicus/spaceShooter#linuxdebian-based-systems)
- [Option 1: Download the zipped executable file](https://github.com/prodicus/spaceShooter#option-1-download-the-zipped-executable-file)
- [Option 2: Build from source](https://github.com/prodicus/spaceShooter#option-2-build-from-source)
- [For MAC OS X](https://github.com/prodicus/spaceShooter#for-mac-os-x)
- [Contributing](https://github.com/prodicus/spaceShooter#contributing)
- [Contributers](https://github.com/prodicus/spaceShooter#contributers)
- [To-do](https://github.com/prodicus/spaceShooter#to-do)
- [Issues](https://github.com/prodicus/spaceShooter#issues)
- [Similar](https://github.com/prodicus/spaceShooter#similar)
- [License](https://github.com/prodicus/spaceShooter#license)
## Demo
[[Back to top]](https://github.com/prodicus/spaceShooter#index)
Follow the youtube video to see how I fared on ``spaceShooter``
[![Space Shooter Demo - Youtube](http://i.imgur.com/bHjlJfG.jpg)](https://www.youtube.com/watch?v=o99zpLsM-ZI)
## Screenshots
[[Back to top]](https://github.com/prodicus/spaceShooter#index)
| ![Screen 1](http://i.imgur.com/3MzfmbT.jpg) | ![Screen 2](http://i.imgur.com/4OgIByR.png) |
|---------------------------------------------|---------------------------------------------|
| ![Screen 3](http://i.imgur.com/PFQJjE8.png) | ![Screen 4](http://i.imgur.com/lV4aIur.png) |
## Game Features
[[Back to top]](https://github.com/prodicus/spaceShooter#index)
- Health bar for the space ship
- Score board to show how you are faring so far
- Power ups like
- shield: increases the space ships life
- bolt: increases the shooting capability of the ship by firing 2 to 3 bullets instead of one at time.
- Custom sounds and sprite animation for things like
- meteorite explosion
- bullet shoots
- player explosion
- 3 lives per game
- Fun to play :)
## Controls
[[Back to top]](https://github.com/prodicus/spaceShooter#index)
| | Button |
|--------------|---------------------|
| Move Left | <kbd>left</kbd> |
| Move right | <kbd>right</kbd> |
| Fire bullets | <kbd>spacebar</kbd> |
| Quit game | <kbd>Esc</kbd> |
## Installation
[[Back to top]](https://github.com/prodicus/spaceShooter#index)
### For `Windows`
- :arrow_down: [Download the prebuilt zip file and unzip it.](https://github.com/prodicus/spaceShooter/releases/latest)
- Run the executable named `spaceShooter` inside the extracted file.
### `Linux/Debian` based systems
#### Option 1: Download the zipped executable file
- :arrow_down: [Download the latest zip file for linux](https://github.com/prodicus/spaceShooter/releases/latest)
- Unzip the file
If your download was saved on the `~/Downloads` folder
Press <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>T</kbd> to open the shell if you are on `GNU/Linux` based systems and type
```bash
$ unzip ~/Downloads/SpaceShooter-0.0.3.Linux.zip -d ~/Desktop
$ cd ~/Desktop
$ ## navigate to the unzipped file and change the file permissions for the executable
~/Desktop $ chmod +x spaceShooter
~/Desktop $ ./spaceShooter
```
This will unzip the file on your `Desktop`, you can replace it with the directory of your choice
**NOTE** : If it gives you an error, you probably don't have `unzip` installed in your system.
```bash
$ sudo apt-get install unzip
```
That should fix the error.
- Run the executable named `spaceShooter`
A Similar process would be followed for `OS X`
#### Option 2: Build from source
You need to have `pygame` installed for this option.
##### Ubuntu/Debian
```bash
$ sudo apt-get install python-pygame
```
##### Clone the repo
```bash
$ git clone https://github.com/prodicus/spaceShooter.git
$ cd spaceShooter/
$ python spaceShooter.py
```
### For `MAC OS X`
You have to build from source to get it up and running on `OS X`. Reason?
I don't have an `OS X` system to build the executable! So I would love for a Pull request on that one.
Building from source will do the trick though
```bash
$ pip3 install hg+http://bitbucket.org/pygame/pygame
```
Install Pygame specific dependencies
```bash
$ brew install sdl sdl_image sdl_ttf portmidi libogg libvorbis
$ brew install sdl_mixer --with-libvorbis
```
##### Clone the repo
```bash
$ git clone https://github.com/prodicus/spaceShooter.git
$ cd spaceShooter/
$ python spaceShooter.py
```
## Contributing
[[Back to top]](https://github.com/prodicus/spaceShooter#index)
This 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 :)
For details, please refer [the Contributing page](https://github.com/prodicus/spaceShooter/blob/master/CONTRIBUTING.rst)
### Contributers
[[Back to top]](https://github.com/prodicus/spaceShooter#index)
- [@bardlean86](https://github.com/bardlean86/) for adding the third missile powerup and the main menu
### To-do
[[Back to top]](https://github.com/prodicus/spaceShooter#index)
- [x] Add the `windows` executable file
- [x] Add main menu for the game
- [x] Fix [bug](https://github.com/prodicus/spaceShooter/blob/master/spaceShooter.py#L372) which stops the background music from looping
- [x] Add support for `WAV` game music file as `ogg` format is not playable as described in [#1](https://github.com/prodicus/spaceShooter/issues/1)
- [ ] Add feature to pause to the game.
- [ ] add feature to replay the game after all players die
- [ ] Add `OS X` executable file as the `Debian` based one fails to execute on it
## Issues
[[Back to top]](https://github.com/prodicus/spaceShooter#index)
You can report the bugs at the [issue tracker](https://github.com/prodicus/spaceShooter/issues)
**OR**
You can [tweet me](https://twitter.com/tasdikrahman) if you can't get it to work. In fact, you should tweet me anyway.
## Similar
[[Back to top]](https://github.com/prodicus/spaceShooter#index)
- [Bullethell.py ](https://github.com/Frederikxyz/bullethell.py) : A fork of [prodicus/spaceShooter](https://github.com/prodicus/spaceShooter) which adds fancy shooting capabilities
## License
[[Back to top]](https://github.com/prodicus/spaceShooter#index)
Built with ♥ by [Tasdik Rahman](http://tasdikrahman.me)[(@tasdikrahman)](https://twitter.com/tasdikrahman) under [MIT License](http://prodicus.mit-license.org)
You can find a copy of the License at http://prodicus.mit-license.org/
- 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).
License for them is in `Public Domain`
- 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/)
没有合适的资源?快使用搜索试试~ 我知道了~
Python小游戏开发项目
共2000个文件
jpg:1464个
png:393个
py:54个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 106 浏览量
2024-01-14
21:49:56
上传
评论
收藏 107.57MB ZIP 举报
温馨提示
附项目源码,包含带图形界面的游戏和控制台类的游戏,使用Python和pygame等进行游戏开发,主要有射击游戏、象棋、五子棋、三国游戏、扫雷、贪吃蛇等等,可以充分学习小游戏开发技术。
资源推荐
资源详情
资源评论
收起资源包目录
Python小游戏开发项目 (2000个子文件)
ground.bmp 717KB
b_jiang.bmp 7KB
r_pao.bmp 7KB
b_bing.bmp 7KB
r_bing.bmp 7KB
b_ma.bmp 7KB
r_xiang.bmp 7KB
b_shi.bmp 7KB
b_xiang.bmp 7KB
r_ma.bmp 7KB
b_pao.bmp 7KB
r_jiang.bmp 7KB
b_ju.bmp 7KB
r_shi.bmp 7KB
r_ju.bmp 7KB
curPos.bmp 7KB
config 109B
Thumbs.db 378KB
Thumbs.db 23KB
Python 大作业.doc 47KB
.gitignore 50B
readme.html 4KB
ChsChess.ico 9KB
sanguo-master_三国.iml 452B
bg_wujiang_info.jpg 404KB
1194440642.jpg 372KB
121GFE056.jpg 62KB
孙冀.jpg 17KB
0004_马超_1.jpg 17KB
马超.jpg 17KB
贾华.jpg 16KB
张特.jpg 16KB
0811_蒙恬_1.jpg 16KB
张宝.jpg 16KB
0009_赵云_1.jpg 16KB
吕布.jpg 16KB
蒋斌.jpg 15KB
文虎.jpg 15KB
牵弘.jpg 15KB
张勳.jpg 15KB
甄氏.jpg 15KB
王淩.jpg 15KB
盗贼.jpg 15KB
0010_颜良_1.jpg 15KB
张承.jpg 14KB
0818_彭越_1.jpg 14KB
彭越.jpg 14KB
张横.jpg 14KB
杨欣.jpg 14KB
王双.jpg 14KB
0825_尉迟恭_1.jpg 14KB
尉迟恭.jpg 14KB
魏邈.jpg 14KB
0021_曹彰_1.jpg 14KB
曹彰.jpg 14KB
0805_乐毅_1.jpg 14KB
乐毅.jpg 14KB
0824_秦琼_1.jpg 14KB
秦琼.jpg 14KB
吕虔.jpg 14KB
何进.jpg 14KB
傅佥.jpg 14KB
秦良玉.jpg 14KB
罗宪.jpg 14KB
杨任.jpg 14KB
鲁淑.jpg 14KB
0022_太史慈_1.jpg 14KB
太史慈.jpg 14KB
带来洞主.jpg 14KB
留略.jpg 14KB
张任.jpg 14KB
卑衍.jpg 14KB
0566_貂蝉_1.jpg 14KB
貂蝉.jpg 14KB
牛金.jpg 14KB
郝昭.jpg 14KB
步协.jpg 14KB
王浑.jpg 14KB
杨松.jpg 14KB
朱然.jpg 14KB
刘璝.jpg 14KB
张南.jpg 14KB
冯习.jpg 14KB
霍弋.jpg 14KB
胡济.jpg 14KB
蒋班.jpg 14KB
0103_张苞_1.jpg 14KB
0069_李傕_1.jpg 13KB
李傕.jpg 13KB
蔡和.jpg 13KB
0027_马腾_1.jpg 13KB
马腾.jpg 13KB
0013_典韦_1.jpg 13KB
张梁.jpg 13KB
0828_郑成功_1.jpg 13KB
卫瓘.jpg 13KB
王濬.jpg 13KB
朱桓.jpg 13KB
0814_英布_1.jpg 13KB
英布.jpg 13KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
python慕遥
- 粉丝: 2284
- 资源: 240
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功