def __init__(self, context): self._context = context context.update_list.append(self) self.index = len(self._context.bullet_list) context.bullet_list.append(self) self.controller = BulletMLController() self.controller.game_object = self self.wait = 0 self.sprite = sprite.get_sprite(BULLET_BITMAP)
def __init__(self, bulletml_behav): super(BulletMLFoe, self).__init__() self.controller = BulletMLController() self.controller.game_object = self self.controller.set_behavior(bulletml_behav) self.wait = 0