平衡难度

This commit is contained in:
星外之神 2022-08-01 11:34:56 +08:00
parent afda2a02c8
commit a1b7c389a0
2 changed files with 2 additions and 2 deletions

View File

@ -412,7 +412,7 @@ LITTLE_GAME_MAP_DATA = (
c.SPIKEWEED: 100,
c.SQUASH: 100,
c.JALAPENO: 50,
c.THREEPEASHOOTER: 400,}
c.THREEPEASHOOTER: 300,}
},
)

View File

@ -322,7 +322,7 @@ class Plant(pg.sprite.Sprite):
if (zombie.name == c.SNORKELZOMBIE) and (zombie.frames == zombie.swim_frames):
return False
if (self.state != c.SLEEP and zombie.state != c.DIE and
self.rect.x <= zombie.rect.right and zombie.rect.x <= c.SCREEN_WIDTH):
self.rect.x <= zombie.rect.right and zombie.rect.x <= c.SCREEN_WIDTH - 24):
return True
return False