- 博客(12)
- 资源 (1)
- 收藏
- 关注
原创 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 793
原创 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 204
原创 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 690
原创 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 228
原创 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 861
原创 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 150
原创 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 521
原创 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 1341
原创 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 181
原创 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 1012
原创 python_飞机大战
gif:https://download.csdn.net/download/qq_40625360/10865285,可下载源码。下一篇奉上源码
2018-12-20 19:38:39 442
飞机大战综训项目
2018-12-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人