diff --git a/resources/graphics/Plants/StarFruit/StarFruit_0.png b/resources/graphics/Plants/StarFruit/StarFruit_0.png new file mode 100644 index 0000000..e8067dd Binary files /dev/null and b/resources/graphics/Plants/StarFruit/StarFruit_0.png differ diff --git a/resources/graphics/Plants/StarFruit/StarFruit_1.png b/resources/graphics/Plants/StarFruit/StarFruit_1.png new file mode 100644 index 0000000..6ef2c33 Binary files /dev/null and b/resources/graphics/Plants/StarFruit/StarFruit_1.png differ diff --git a/resources/graphics/Plants/StarFruit/StarFruit_2.png b/resources/graphics/Plants/StarFruit/StarFruit_2.png new file mode 100644 index 0000000..b0ba74e Binary files /dev/null and b/resources/graphics/Plants/StarFruit/StarFruit_2.png differ diff --git a/resources/graphics/Plants/StarFruit/StarFruit_3.png b/resources/graphics/Plants/StarFruit/StarFruit_3.png new file mode 100644 index 0000000..907d132 Binary files /dev/null and b/resources/graphics/Plants/StarFruit/StarFruit_3.png differ diff --git a/resources/graphics/Plants/StarFruit/StarFruit_4.png b/resources/graphics/Plants/StarFruit/StarFruit_4.png new file mode 100644 index 0000000..94daa88 Binary files /dev/null and b/resources/graphics/Plants/StarFruit/StarFruit_4.png differ diff --git a/resources/graphics/Plants/StarFruit/StarFruit_5.png b/resources/graphics/Plants/StarFruit/StarFruit_5.png new file mode 100644 index 0000000..f474dc6 Binary files /dev/null and b/resources/graphics/Plants/StarFruit/StarFruit_5.png differ diff --git a/resources/graphics/Plants/StarFruit/StarFruit_6.png b/resources/graphics/Plants/StarFruit/StarFruit_6.png new file mode 100644 index 0000000..3cb2c3d Binary files /dev/null and b/resources/graphics/Plants/StarFruit/StarFruit_6.png differ diff --git a/resources/graphics/Plants/StarFruit/StarFruit_7.png b/resources/graphics/Plants/StarFruit/StarFruit_7.png new file mode 100644 index 0000000..bfef997 Binary files /dev/null and b/resources/graphics/Plants/StarFruit/StarFruit_7.png differ diff --git a/resources/graphics/Plants/StarFruit/StarFruit_8.png b/resources/graphics/Plants/StarFruit/StarFruit_8.png new file mode 100644 index 0000000..602cb5e Binary files /dev/null and b/resources/graphics/Plants/StarFruit/StarFruit_8.png differ diff --git a/resources/graphics/Plants/StarFruit/StarFruit_9.png b/resources/graphics/Plants/StarFruit/StarFruit_9.png new file mode 100644 index 0000000..53c5163 Binary files /dev/null and b/resources/graphics/Plants/StarFruit/StarFruit_9.png differ diff --git a/resources/graphics/Plants/TorchWood/TorchWood_0.png b/resources/graphics/Plants/TorchWood/TorchWood_0.png new file mode 100644 index 0000000..64facc2 Binary files /dev/null and b/resources/graphics/Plants/TorchWood/TorchWood_0.png differ diff --git a/resources/graphics/Plants/TorchWood/TorchWood_1.png b/resources/graphics/Plants/TorchWood/TorchWood_1.png new file mode 100644 index 0000000..6a3ad59 Binary files /dev/null and b/resources/graphics/Plants/TorchWood/TorchWood_1.png differ diff --git a/resources/graphics/Plants/TorchWood/TorchWood_2.png b/resources/graphics/Plants/TorchWood/TorchWood_2.png new file mode 100644 index 0000000..6ed2654 Binary files /dev/null and b/resources/graphics/Plants/TorchWood/TorchWood_2.png differ diff --git a/resources/graphics/Plants/TorchWood/TorchWood_3.png b/resources/graphics/Plants/TorchWood/TorchWood_3.png new file mode 100644 index 0000000..72eef44 Binary files /dev/null and b/resources/graphics/Plants/TorchWood/TorchWood_3.png differ diff --git a/resources/graphics/Plants/TorchWood/TorchWood_4.png b/resources/graphics/Plants/TorchWood/TorchWood_4.png new file mode 100644 index 0000000..b330b8a Binary files /dev/null and b/resources/graphics/Plants/TorchWood/TorchWood_4.png differ diff --git a/resources/graphics/Plants/TorchWood/TorchWood_5.png b/resources/graphics/Plants/TorchWood/TorchWood_5.png new file mode 100644 index 0000000..3fdc9dc Binary files /dev/null and b/resources/graphics/Plants/TorchWood/TorchWood_5.png differ diff --git a/source/component/plant.py b/source/component/plant.py index 146d37c..b447b8c 100755 --- a/source/component/plant.py +++ b/source/component/plant.py @@ -106,6 +106,17 @@ class Bullet(pg.sprite.Sprite): def draw(self, surface): surface.blit(self.image, self.rect) +class StarBullet(Bullet): + def __init__(self, x, y, name): + self.name = name + self.frames = [] + self.frame_index = 0 + self.load_images() + self.image = self.frames[self.frame_index] + self.rect = self.image.get_rect() + self.rect.x = x + self.rect.y = y + class Plant(pg.sprite.Sprite): def __init__(self, x, y, name, health, bullet_group, scale=1):