上传文件至 ''

This commit is contained in:
206530122 2021-06-20 15:22:16 +08:00
parent 499d9bfd81
commit 8b16258ed4
1 changed files with 8 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class GameSound(object):
pygame.mixer.Sound.play(self.__bomb) # 爆炸音乐
class Bomb(object):
class Bomb(object):
# 初始化爆炸
def __init__(self, screen, type):
self.screen = screen
@ -28,3 +28,10 @@ class Bomb(object):
self.mImages += self.mImages
# 设置当前爆炸播放索引
self.mIndex = 0
# 爆炸位置
self.mPos = [0, 0]
# 是否可见
self.mVisible = False