Beispiel #1
0
 def fire_bullet_boss(self):
     anglex = main_state.player.x - self.x;
     angley = main_state.player.y - self.y;
     if self.time % 120 < 20:
         self.angle = math.atan2(angley,anglex) - (self.time % 11) + 11/2
     enemybullet = Enmey_Bullet(self.x, self.y, self.angle)
     game_world.add_object(enemybullet, 1)
Beispiel #2
0
 def fire_bullet(self, angle):
         self.angle = angle
         enemybullet = Enmey_Bullet(self.x, self.y, self.angle)
         game_world.add_object(enemybullet, 1)
Beispiel #3
0
 def fire_bullet(self):
     anglex = main_state.player.x - self.x
     angley = main_state.player.y - self.y
     self.angle = math.atan2(angley, anglex)
     enemybullet = Enmey_Bullet(self.x, self.y, self.angle)
     game_world.add_object(enemybullet, 1)