加入睡莲
BIN
resources/graphics/Plants/LilyPad/LilyPad_0.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
resources/graphics/Plants/LilyPad/LilyPad_1.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
resources/graphics/Plants/LilyPad/LilyPad_10.png
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
BIN
resources/graphics/Plants/LilyPad/LilyPad_11.png
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
BIN
resources/graphics/Plants/LilyPad/LilyPad_12.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
resources/graphics/Plants/LilyPad/LilyPad_2.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
resources/graphics/Plants/LilyPad/LilyPad_3.png
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
BIN
resources/graphics/Plants/LilyPad/LilyPad_4.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
resources/graphics/Plants/LilyPad/LilyPad_5.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
resources/graphics/Plants/LilyPad/LilyPad_6.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
resources/graphics/Plants/LilyPad/LilyPad_7.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
resources/graphics/Plants/LilyPad/LilyPad_8.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
resources/graphics/Plants/LilyPad/LilyPad_9.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
@ -1015,4 +1015,8 @@ class RedWallNutBowling(Plant):
|
||||
self.rect = self.image.get_rect(center=self.init_rect.center)
|
||||
|
||||
def getPosition(self):
|
||||
return (self.rect.centerx, self.orig_y)
|
||||
return (self.rect.centerx, self.orig_y)
|
||||
|
||||
class LilyPad(Plant):
|
||||
def __init__(self, x, y):
|
||||
Plant.__init__(self, x, y, c.LILYPAD, c.PLANT_HEALTH, None)
|
||||
@ -148,6 +148,7 @@ ICESHROOM = 'IceShroom'
|
||||
HYPNOSHROOM = 'HypnoShroom'
|
||||
WALLNUTBOWLING = 'WallNutBowling'
|
||||
REDWALLNUTBOWLING = 'RedWallNutBowling'
|
||||
LILYPAD = 'LilyPad'
|
||||
|
||||
PLANT_HEALTH = 300
|
||||
WALLNUT_HEALTH = 4000
|
||||
|
||||
@ -515,6 +515,8 @@ class Level(tool.State):
|
||||
new_plant = plant.WallNutBowling(x, y, map_y, self)
|
||||
elif self.plant_name == c.REDWALLNUTBOWLING:
|
||||
new_plant = plant.RedWallNutBowling(x, y)
|
||||
elif self.plant_name == c.LILYPAD:
|
||||
new_plant = plant.LilyPad(x, y)
|
||||
|
||||
if new_plant.can_sleep and self.background_type in {c.BACKGROUND_DAY, c.BACKGROUND_POOL, c.BACKGROUND_ROOF, c.BACKGROUND_WALLNUTBOWLING, c.BACKGROUND_SINGLE, c.BACKGROUND_TRIPLE}:
|
||||
new_plant.setSleep()
|
||||
|
||||