From 9801133724dcd1050a89492762da4fd04993b30a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Tue, 2 Aug 2022 19:41:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B0=8F=E6=8E=A8=E8=BD=A6?= =?UTF-8?q?=E8=A7=A6=E5=8F=91bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/map.py | 2 +- source/state/level.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/source/component/map.py b/source/component/map.py index 6a610af..60f16af 100755 --- a/source/component/map.py +++ b/source/component/map.py @@ -365,7 +365,7 @@ LITTLE_GAME_MAP_DATA = ( c.CHOOSEBAR_TYPE: c.CHOOSEBAR_BOWLING, c.SHOVEL: 0, c.SPAWN_ZOMBIES:c.SPAWN_ZOMBIES_AUTO, - c.INCLUDED_ZOMBIES: ( c.SCREEN_DOOR_ZOMBIE,), + c.INCLUDED_ZOMBIES: ( c.POLE_VAULTING_ZOMBIE,), c.NUM_FLAGS:3, c.CARD_POOL: { c.WALLNUTBOWLING: 0, c.REDWALLNUTBOWLING: 0, diff --git a/source/state/level.py b/source/state/level.py index cca8783..6da90d3 100644 --- a/source/state/level.py +++ b/source/state/level.py @@ -1196,7 +1196,7 @@ class Level(tool.State): and (pg.sprite.collide_mask(zombie, self.cars[i]))): self.cars[i].setWalk() if (pg.sprite.collide_mask(zombie, self.cars[i]) or - self.cars[i].rect.x <= zombie.rect.centerx <= self.cars[i].rect.right): + self.cars[i].rect.x <= zombie.rect.right <= self.cars[i].rect.right): zombie.health = 0 if self.cars[i].dead: self.cars[i] = None @@ -1417,7 +1417,6 @@ class Level(tool.State): for i in range(self.map_y_len): for zombie in self.zombie_groups[i]: if zombie.rect.right < -20 and (not zombie.losthead) and (zombie.state != c.DIE): - print(zombie.rect.right, zombie.losthead, zombie.state,zombie.name) return True return False