Exemple #1
0
 def update(self):
     """
     Updates the plant sprite
     Just decreases health until death
     """
     Sprite.button_ops(self)
     self.health_monitor()
     self.blit()
Exemple #2
0
 def update(self):
     """
     Updates the bee sprite
     Either dies, calls Sprite.hunt for plants or calls Sprite.update
     """
     Sprite.button_ops(self)
     if self.health_monitor():
         return
     if not Sprite.hunt(self, Global.plant_group):
         Sprite.update(self)
Exemple #3
0
 def update(self):
     """
     Updates the deer sprite
     Either dies, hunts deer,  or calls Sprite.update
     """
     Sprite.button_ops(self)
     if self.health_monitor():
         return
     if not Sprite.hunt(self, Global.deer_group):
         Sprite.update(self)