资源简介
飞机大战原始版本比较简单,只有一种敌机。
增强版本在这个基础上增加了下面功能
支持三种类型的敌机
支持敌机发射子弹
添加飞机的武器类型(炸弹,同时发射多行子弹)
敌机可以从左边,上方和右边三个方向出现
支持飞机有多条生命
添加道具获取(可以获取炸弹,和增强子弹)
编译环境
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
相关资源
- 二级考试python试题12套(包括选择题和
- pywin32_python3.6_64位
- python+ selenium教程
- PycURL(Windows7/Win32)Python2.7安装包 P
- 英文原版-Scientific Computing with Python
- 7.图像风格迁移 基于深度学习 pyt
- 基于Python的学生管理系统
- A Byte of Python(简明Python教程)(第
- Python实例174946
- Python 人脸识别
- Python 人事管理系统
- 基于python-flask的个人博客系统
- 计算机视觉应用开发流程
- python 调用sftp断点续传文件
- python socket游戏
- 基于Python爬虫爬取天气预报信息
- python函数编程和讲解
- Python开发的个人博客
- 基于python的三层神经网络模型搭建
- python实现自动操作windows应用
- python人脸识别(opencv)
- python 绘图(方形、线条、圆形)
- python疫情卡UN管控
- python 连连看小游戏源码
- 基于PyQt5的视频播放器设计
- 一个简单的python爬虫
- csv文件行列转换python实现代码
- Python操作Mysql教程手册
- Python Machine Learning Case Studies
- python获取硬件信息
评论
共有 条评论