墓碑中可以冒出路障僵尸
This commit is contained in:
parent
8eb99747ef
commit
3d978a737f
@ -550,4 +550,4 @@ class MoveBar():
|
|||||||
def draw(self, surface):
|
def draw(self, surface):
|
||||||
surface.blit(self.image, self.rect)
|
surface.blit(self.image, self.rect)
|
||||||
for card in self.card_list:
|
for card in self.card_list:
|
||||||
card.draw(surface)
|
card.draw(surface)
|
||||||
|
|||||||
@ -220,7 +220,11 @@ class Level(tool.State):
|
|||||||
if current_time - self.waveTime > 1500:
|
if current_time - self.waveTime > 1500:
|
||||||
for item in self.graveSet:
|
for item in self.graveSet:
|
||||||
itemX, itemY = self.map.getMapGridPos(*item)
|
itemX, itemY = self.map.getMapGridPos(*item)
|
||||||
self.zombie_groups[item[1]].add(zombie.NormalZombie(itemX, itemY, self.head_group))
|
# 目前设定:2/3概率普通僵尸,1/3概率路障僵尸
|
||||||
|
if randint(0, 2):
|
||||||
|
self.zombie_groups[item[1]].add(zombie.NormalZombie(itemX, itemY, self.head_group))
|
||||||
|
else:
|
||||||
|
self.zombie_groups[item[1]].add(zombie.ConeHeadZombie(itemX, itemY, self.head_group))
|
||||||
self.graveZombieCreated = True
|
self.graveZombieCreated = True
|
||||||
elif self.map_data[c.BACKGROUND_TYPE] in {c.BACKGROUND_POOL, c.BACKGROUND_FOG}:
|
elif self.map_data[c.BACKGROUND_TYPE] in {c.BACKGROUND_POOL, c.BACKGROUND_FOG}:
|
||||||
if not self.createdZombieFromPool:
|
if not self.createdZombieFromPool:
|
||||||
|
|||||||
@ -175,4 +175,4 @@ class Menu(tool.State):
|
|||||||
surface.blit(self.bg_image, self.bg_rect)
|
surface.blit(self.bg_image, self.bg_rect)
|
||||||
surface.blit(self.adventure_image, self.adventure_rect)
|
surface.blit(self.adventure_image, self.adventure_rect)
|
||||||
surface.blit(self.exit_image, self.exit_rect)
|
surface.blit(self.exit_image, self.exit_rect)
|
||||||
surface.blit(self.littleGame_image, self.littleGame_rect)
|
surface.blit(self.littleGame_image, self.littleGame_rect)
|
||||||
|
|||||||
@ -54,4 +54,4 @@ class GameLoseScreen(Screen):
|
|||||||
return c.GAME_LOSE_IMAGE
|
return c.GAME_LOSE_IMAGE
|
||||||
|
|
||||||
def set_next_state(self):
|
def set_next_state(self):
|
||||||
return c.LEVEL
|
return c.LEVEL
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user