diff --git a/resources/graphics/Plants/LilyPad/LilyPad_0.png b/resources/graphics/Plants/LilyPad/LilyPad_0.png new file mode 100644 index 0000000..4235d3b Binary files /dev/null and b/resources/graphics/Plants/LilyPad/LilyPad_0.png differ diff --git a/resources/graphics/Plants/LilyPad/LilyPad_1.png b/resources/graphics/Plants/LilyPad/LilyPad_1.png new file mode 100644 index 0000000..626bb48 Binary files /dev/null and b/resources/graphics/Plants/LilyPad/LilyPad_1.png differ diff --git a/resources/graphics/Plants/LilyPad/LilyPad_10.png b/resources/graphics/Plants/LilyPad/LilyPad_10.png new file mode 100644 index 0000000..2ac3e5b Binary files /dev/null and b/resources/graphics/Plants/LilyPad/LilyPad_10.png differ diff --git a/resources/graphics/Plants/LilyPad/LilyPad_11.png b/resources/graphics/Plants/LilyPad/LilyPad_11.png new file mode 100644 index 0000000..34a2ed0 Binary files /dev/null and b/resources/graphics/Plants/LilyPad/LilyPad_11.png differ diff --git a/resources/graphics/Plants/LilyPad/LilyPad_12.png b/resources/graphics/Plants/LilyPad/LilyPad_12.png new file mode 100644 index 0000000..6aa1184 Binary files /dev/null and b/resources/graphics/Plants/LilyPad/LilyPad_12.png differ diff --git a/resources/graphics/Plants/LilyPad/LilyPad_2.png b/resources/graphics/Plants/LilyPad/LilyPad_2.png new file mode 100644 index 0000000..26d3bfd Binary files /dev/null and b/resources/graphics/Plants/LilyPad/LilyPad_2.png differ diff --git a/resources/graphics/Plants/LilyPad/LilyPad_3.png b/resources/graphics/Plants/LilyPad/LilyPad_3.png new file mode 100644 index 0000000..76ec5d3 Binary files /dev/null and b/resources/graphics/Plants/LilyPad/LilyPad_3.png differ diff --git a/resources/graphics/Plants/LilyPad/LilyPad_4.png b/resources/graphics/Plants/LilyPad/LilyPad_4.png new file mode 100644 index 0000000..3ce681f Binary files /dev/null and b/resources/graphics/Plants/LilyPad/LilyPad_4.png differ diff --git a/resources/graphics/Plants/LilyPad/LilyPad_5.png b/resources/graphics/Plants/LilyPad/LilyPad_5.png new file mode 100644 index 0000000..1a7f0f6 Binary files /dev/null and b/resources/graphics/Plants/LilyPad/LilyPad_5.png differ diff --git a/resources/graphics/Plants/LilyPad/LilyPad_6.png b/resources/graphics/Plants/LilyPad/LilyPad_6.png new file mode 100644 index 0000000..1a7f0f6 Binary files /dev/null and b/resources/graphics/Plants/LilyPad/LilyPad_6.png differ diff --git a/resources/graphics/Plants/LilyPad/LilyPad_7.png b/resources/graphics/Plants/LilyPad/LilyPad_7.png new file mode 100644 index 0000000..7411a09 Binary files /dev/null and b/resources/graphics/Plants/LilyPad/LilyPad_7.png differ diff --git a/resources/graphics/Plants/LilyPad/LilyPad_8.png b/resources/graphics/Plants/LilyPad/LilyPad_8.png new file mode 100644 index 0000000..32f46be Binary files /dev/null and b/resources/graphics/Plants/LilyPad/LilyPad_8.png differ diff --git a/resources/graphics/Plants/LilyPad/LilyPad_9.png b/resources/graphics/Plants/LilyPad/LilyPad_9.png new file mode 100644 index 0000000..0d80e17 Binary files /dev/null and b/resources/graphics/Plants/LilyPad/LilyPad_9.png differ diff --git a/source/component/plant.py b/source/component/plant.py index da1ac75..0da173e 100755 --- a/source/component/plant.py +++ b/source/component/plant.py @@ -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) \ No newline at end of file + 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) \ No newline at end of file diff --git a/source/constants.py b/source/constants.py index 90b9663..d87ad86 100755 --- a/source/constants.py +++ b/source/constants.py @@ -148,6 +148,7 @@ ICESHROOM = 'IceShroom' HYPNOSHROOM = 'HypnoShroom' WALLNUTBOWLING = 'WallNutBowling' REDWALLNUTBOWLING = 'RedWallNutBowling' +LILYPAD = 'LilyPad' PLANT_HEALTH = 300 WALLNUT_HEALTH = 4000 diff --git a/source/state/level.py b/source/state/level.py index 9b0cf10..38bdb4b 100644 --- a/source/state/level.py +++ b/source/state/level.py @@ -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()