python
文章平均质量分 75
今夜满天星啦
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python_飞机大战
gif:https://download.youkuaiyun.com/download/qq_40625360/10865285,可下载源码。下一篇奉上源码原创 2018-12-20 19:38:39 · 487 阅读 · 0 评论 -
python_飞机大战_jiemian_py_九
建议从python_飞机大战_diren_py_一 开始看import pygameshuju = ["0"]class JieMian(): def __init__(self,scene): #缓存主场景对象 self.main_scene = scene self.game_start_button = True...原创 2018-12-20 19:51:33 · 266 阅读 · 0 评论 -
python_飞机大战_boom_py_八
建议从python_飞机大战_diren_py_一 开始看import pygameclass booms(object): # 初始化爆炸 def __init__(self, scene,boss = False): self.main_scene = scene # 加载爆炸资源 self.is_boss = boss...原创 2018-12-20 19:50:05 · 736 阅读 · 0 评论 -
python_飞机大战_bossbullets_py_七
建议从python_飞机大战_diren_py_一 开始看import pygameimport random# 子弹class BossBullet(object): # 初始化子弹 def __init__(self, scene): # 子弹移动速度 self.speed = 2 # 加载敌人子弹图片 ...原创 2018-12-20 19:49:08 · 280 阅读 · 0 评论 -
python_飞机大战_boss_py_六
建议从python_飞机大战_diren_py_一 开始看import pygamefrom bullets import *BLACK = (0, 0, 0)RED = (255, 0, 0)GREEN = (0, 255, 0)YELLOW = (255, 255, 0)class Boss(object): def __init__(self,scene...原创 2018-12-20 19:48:05 · 923 阅读 · 0 评论 -
python_飞机大战_bullets_py_五
建议从python_飞机大战_diren_py_一 开始看import pygameimport random# 子弹class Bullet(object): # 初始化子弹 def __init__(self, scene,enemy = False): # 子弹移动速度 self.speed = 2 # 子弹资源...原创 2018-12-20 19:46:57 · 201 阅读 · 0 评论 -
python_飞机大战_diren_py_四
建议从python_飞机大战_diren_py_一 开始看import pygameimport randomfrom bullets import *# 敌人飞机class EnemyPlane(object): # 初始化敌人飞机 def __init__(self, scene,level): # 加载飞机资源 self.ima...原创 2018-12-20 19:45:47 · 564 阅读 · 0 评论 -
python_飞机大战_HeroPlan_py_三
建议从python_飞机大战_main_py_一 开始看import pygamefrom bullets import *# 飞机class HeroPlane(object): # 飞机初始化 def __init__(self,scene,hero_life): # 加载飞机资源 self.image = pygame.i...原创 2018-12-20 19:43:59 · 1376 阅读 · 0 评论 -
python_飞机大战_background_py_二
import pygame# 地图class Background(object): # 初始化地图 def __init__(self, scene,level): # 加载相同张图片资源,做交替实现地图滚动 self.image1 = pygame.image.load("images/img_bg_level_"+str(l...原创 2018-12-20 19:42:19 · 228 阅读 · 0 评论 -
python_飞机大战_main_py_一
建议从python_飞机大战_main_py_一 开始看import pygameimport randomimport timefrom background import *from bullets import *from Heroplan import *from diren import *from Boom import *from scorebord i...原创 2018-12-20 19:41:12 · 1067 阅读 · 0 评论 -
python_飞机大战_scoreboard_py_十
建议从python_飞机大战_diren_py_一 开始看import pygame#开始游戏界面,游戏中得分界面,结束游戏界面class ScoreBoard(object): def __init__(self, scene): pygame.init() #缓存主场景对象 self.main_scene = sce...原创 2018-12-21 10:24:55 · 849 阅读 · 0 评论
分享