python
文章平均质量分 77
今夜满天星啦
这个作者很懒,什么都没留下…
展开
-
python_飞机大战
gif: https://download.csdn.net/download/qq_40625360/10865285,可下载源码。 下一篇奉上源码原创 2018-12-20 19:38:39 · 433 阅读 · 0 评论 -
python_飞机大战_jiemian_py_九
建议从python_飞机大战_diren_py_一 开始看 import pygame shuju = ["0"] class JieMian(): def __init__(self,scene): #缓存主场景对象 self.main_scene = scene self.game_start_button = True ...原创 2018-12-20 19:51:33 · 195 阅读 · 0 评论 -
python_飞机大战_boom_py_八
建议从python_飞机大战_diren_py_一 开始看 import pygame class booms(object): # 初始化爆炸 def __init__(self, scene,boss = False): self.main_scene = scene # 加载爆炸资源 self.is_boss = boss...原创 2018-12-20 19:50:05 · 684 阅读 · 0 评论 -
python_飞机大战_bossbullets_py_七
建议从python_飞机大战_diren_py_一 开始看 import pygame import random # 子弹 class BossBullet(object): # 初始化子弹 def __init__(self, scene): # 子弹移动速度 self.speed = 2 # 加载敌人子弹图片 ...原创 2018-12-20 19:49:08 · 198 阅读 · 0 评论 -
python_飞机大战_boss_py_六
建议从python_飞机大战_diren_py_一 开始看 import pygame from 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 · 834 阅读 · 0 评论 -
python_飞机大战_bullets_py_五
建议从python_飞机大战_diren_py_一 开始看 import pygame import random # 子弹 class Bullet(object): # 初始化子弹 def __init__(self, scene,enemy = False): # 子弹移动速度 self.speed = 2 # 子弹资源 ...原创 2018-12-20 19:46:57 · 145 阅读 · 0 评论 -
python_飞机大战_diren_py_四
建议从python_飞机大战_diren_py_一 开始看 import pygame import random from bullets import * # 敌人飞机 class EnemyPlane(object): # 初始化敌人飞机 def __init__(self, scene,level): # 加载飞机资源 self.ima...原创 2018-12-20 19:45:47 · 514 阅读 · 0 评论 -
python_飞机大战_HeroPlan_py_三
建议从python_飞机大战_main_py_一 开始看 import pygame from bullets import * # 飞机 class HeroPlane(object): # 飞机初始化 def __init__(self,scene,hero_life): # 加载飞机资源 self.image = pygame.i...原创 2018-12-20 19:43:59 · 1333 阅读 · 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 · 177 阅读 · 0 评论 -
python_飞机大战_main_py_一
建议从python_飞机大战_main_py_一 开始看 import pygame import random import time from background import * from bullets import * from Heroplan import * from diren import * from Boom import * from scorebord i...原创 2018-12-20 19:41:12 · 1000 阅读 · 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 · 762 阅读 · 0 评论