Example #1
0
 def bullet_phase1(self):
     if self.time % 20 < 9:
         radian = ((self.time % 9) * 45) / 180 * math.pi
         self.fire_bullet(radian)
     if int(self.time % 15) == 0 and int(self.time) < 250:
         radian = ((self.time % 90)+150) / 180 * math.pi
         self.fire_bullet(radian)
     if int(self.time % 30) == 0:
         Enemy_1.fire_bullet(self)
Example #2
0
 def bullet_phase2(self):
     if int(self.time % 10) == 0 and int(self.time) < 350:
         radian = ((self.time % 90)) / 180 * math.pi
         self.fire_bullet(radian)
         radian = ((self.time % 90)+90) / 180 * math.pi
         self.fire_bullet(radian)
         radian = ((self.time % 90) + 180) / 180 * math.pi
         self.fire_bullet(radian)
         radian = ((self.time % 90) + 270) / 180 * math.pi
         self.fire_bullet(radian)
     if int(self.time % 5) == 0 and int(self.time) > 300:
         radian = ((self.time % 120)+120) / 180 * math.pi
         self.fire_bullet(radian)
     if int(self.time % 20) == 0:
         Enemy_1.fire_bullet(self)
Example #3
0
 def bullet_phase0(self):
     if self.time % 40 < 13:
         radian = ((self.time % 13) * 30) / 180 * math.pi
         self.fire_bullet(radian)
     if int(self.time % 50) == 0:
         Enemy_1.fire_bullet(self)