资源简介
飞机大战原始版本比较简单,只有一种敌机。
增强版本在这个基础上增加了下面功能
支持三种类型的敌机
支持敌机发射子弹
添加飞机的武器类型(炸弹,同时发射多行子弹)
敌机可以从左边,上方和右边三个方向出现
支持飞机有多条生命
添加道具获取(可以获取炸弹,和增强子弹)
编译环境
python3.7 + pygame1.9
代码片段和文件信息
# -*- coding: utf-8 -*-
“““
Created on Wed Feb 13 15:45:00 2019
@author: marble_xu
“““
# screen size
SCREEN_WIDTH = 480
SCREEN_HEIGHT = 640
frame_RATE = 60
# enemy or hero image change frequency of tick unit
ANIMATE_CYCLE = 30
######### Game Difficulty Setting #########
# enemy plane appear in y range (0 ENEMY_APPEAR_HEIGHT) when come from left or right side
# easy:SCREEN_HEIGHT//3 hard:SCREEN_HEIGHT//2 dead:(SCREEN_HEIGHT*2//3)
ENEMY_APPEAR_HEIGHT = (SCREEN_HEIGHT//3)
# create enemy and gift frequency of tick unit
# easy:60 hard:30
CREATE_CYCLE = 60
# hero shoot frequency of tick unit
# easy:10 hard:15 dead:30
SHOOT_CYCLE = 15
# easy <= 5 hard: (68)
SHOOT_SPEED = 8
# enemy shoot frequency of tick unit
# easy:120 hard:90 dead:60
ENEMY_SHOOT_CYCLE = 120
# ENEMY_SHOOT_SPEED easy:1 hard:2 dead = 3
ENEMY_SHOOT_SPEED = 2
######### End of Game Difficulty Setting #########
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-02-17 10:05 PythonShootGame-master\
文件 975 2019-02-17 10:05 PythonShootGame-master\README.md
文件 900 2019-02-17 10:05 PythonShootGame-master\config.py
目录 0 2019-02-17 10:05 PythonShootGame-master\demo\
文件 190212 2019-02-17 10:05 PythonShootGame-master\demo\screenshot1.png
文件 11819 2019-02-17 10:05 PythonShootGame-master\gameRole.py
文件 5529 2019-02-17 10:05 PythonShootGame-master\resource.py
目录 0 2019-02-17 10:05 PythonShootGame-master\resource\
目录 0 2019-02-17 10:05 PythonShootGame-master\resource\image\
文件 33518 2019-02-17 10:05 PythonShootGame-master\resource\image\background.png
文件 20682 2019-02-17 10:05 PythonShootGame-master\resource\image\gameover.png
文件 3388 2019-02-17 10:05 PythonShootGame-master\resource\image\shoot.pack
文件 463797 2019-02-17 10:05 PythonShootGame-master\resource\image\shoot.png
目录 0 2019-02-17 10:05 PythonShootGame-master\resource\sound\
文件 8108 2019-02-17 10:05 PythonShootGame-master\resource\sound\bullet.wav
文件 17900 2019-02-17 10:05 PythonShootGame-master\resource\sound\enemy1_down.wav
文件 14444 2019-02-17 10:05 PythonShootGame-master\resource\sound\enemy2_down.wav
文件 71468 2019-02-17 10:05 PythonShootGame-master\resource\sound\enemy3_down.wav
文件 1087532 2019-02-17 10:05 PythonShootGame-master\resource\sound\game_music.wav
文件 44972 2019-02-17 10:05 PythonShootGame-master\resource\sound\game_over.wav
文件 86108 2019-02-17 10:05 PythonShootGame-master\resource\sound\get_bomb.wav
文件 334140 2019-02-17 10:05 PythonShootGame-master\resource\sound\use_bomb.wav
文件 6755 2019-02-17 10:05 PythonShootGame-master\shooter.py
相关资源
- pygame小游戏-全民打飞机(关卡选择飞
- Learning Data Mining With Python book 代码及数
- Python数据挖掘入门与实践 数据集及代
- Python数据爬虫及可视化分析
- python小波包文档及论文.zip
- Python-100-Days-master.rar
- Introduction to Programming in Python An Inter
- Introduction to Machine Learning with Python.p
- gan简单代码实现python
- python安装器easy_install
- python火车票查询软件及源码
- selenium最新版2.53.1---python
- python Tkinter
- 批量文件.py
- 一套最新价值1680元的python爬虫实战全
- 测试工程师相关学习视频(包含pyth
- Building Django 2.0 Web Applications
- 轻量级PythonWeb框架Mole.zip
- 谁说菜鸟不用数据分析
- Python源码剖析★PART2★(完整清晰版
- mysqlclient-1.3.13-cp36-cp36m-win32.whl
- Python-一系列高品质的动漫人脸数据集
- Python-Insightface人脸检测识别的最小化
- 非线性回归Python代码
- python 使用pandas操作EXCEL表格数据
- 卷积神经网络图像识别python代码pdf
- pytorch_pose_proposal_networks-master.zip
- 关于吃豆人的游戏代码python
- 基于Python的离线Google地图操作实现
- 11-Python爬虫工程师-App抓取进阶
评论
共有 条评论