Beispiel #1
0
 def step(self):
     if self.LaunchCount == 0:
         vx, vy = self.Velocity
         self.Translate(self.Velocity)
         self.Velocity = (vx, vy + 1)
         try:self.Angle = math.degrees(math.atan(float(vy+1)/vx))
         except:self.Angle = 90
         self.RotateTo(self.Angle)
     self.LaunchCount = Base.limit(self.LaunchCount+1, -1, 1, True)