增加部分素材
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 964 B |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
@ -1088,3 +1088,25 @@ class Zomboni(Zombie):
|
||||
# 播放冰车爆炸音效
|
||||
pg.mixer.Sound(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))) ,"resources", "sound", "zomboniExplosion.ogg")).play()
|
||||
|
||||
|
||||
class SnorkelZombie(Zombie):
|
||||
def __init__(self, x, y, head_group):
|
||||
Zombie.__init__(self, x, y, c.SNORKELZOMBIE, canSwim=True)
|
||||
self.speed = 1.175
|
||||
|
||||
def loadImages(self):
|
||||
self.walk_frames = []
|
||||
self.swim_frames = []
|
||||
self.attack_frames = []
|
||||
self.jump_frames = []
|
||||
self.float_frames = []
|
||||
self.sink_frame = []
|
||||
self.losthead_walk_frames = []
|
||||
self.losthead_attack_frames = []
|
||||
self.die_frames = []
|
||||
self.boomdie_frames = []
|
||||
|
||||
walk_name = self.name
|
||||
swim_name = self.name + 'Dive'
|
||||
attack_name = self.name + 'Attack'
|
||||
jump_name = self.name + 'Jump'
|
||||
|
||||
@ -410,6 +410,7 @@ BUCKETHEAD_DUCKY_TUBE_ZOMBIE = 'BucketheadDuckyTubeZombie'
|
||||
SCREEN_DOOR_ZOMBIE = 'ScreenDoorZombie'
|
||||
POLE_VAULTING_ZOMBIE = 'PoleVaultingZombie'
|
||||
ZOMBONI = 'Zomboni'
|
||||
SNORKELZOMBIE = 'SnorkelZombie'
|
||||
|
||||
BOOMDIE = 'BoomDie'
|
||||
|
||||
@ -464,19 +465,20 @@ CREATE_ZOMBIE_DICT = { # 生成僵尸:(级别, 权重)
|
||||
SCREEN_DOOR_ZOMBIE: (4, 3500),
|
||||
POLE_VAULTING_ZOMBIE: (2, 2000),
|
||||
ZOMBONI: (7, 2000),
|
||||
SNORKELZOMBIE: (3, 2000),
|
||||
}
|
||||
|
||||
# 记录陆生僵尸的水生变种
|
||||
CONVERT_ZOMBIE_IN_POOL = {
|
||||
NORMAL_ZOMBIE: DUCKY_TUBE_ZOMBIE,
|
||||
CONEHEAD_ZOMBIE: CONEHEAD_DUCKY_TUBE_ZOMBIE,
|
||||
BUCKETHEAD_ZOMBIE: BUCKETHEAD_DUCKY_TUBE_ZOMBIE
|
||||
BUCKETHEAD_ZOMBIE: BUCKETHEAD_DUCKY_TUBE_ZOMBIE,
|
||||
}
|
||||
|
||||
# 水上僵尸集合
|
||||
WATER_ZOMBIE = {
|
||||
DUCKY_TUBE_ZOMBIE, CONEHEAD_DUCKY_TUBE_ZOMBIE,
|
||||
BUCKETHEAD_DUCKY_TUBE_ZOMBIE,
|
||||
BUCKETHEAD_DUCKY_TUBE_ZOMBIE, SNORKELZOMBIE,
|
||||
}
|
||||
|
||||
|
||||
|
||||