Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.69 KB | None | 0 0
  1.     shield = 800
  2.     printx = next_checkpoint_x
  3.     printy = next_checkpoint_y
  4.     if Boost and next_checkpoint_dist > 5000 and next_checkpoint_angle == 0:
  5.             thrust = "BOOST"
  6.         Boost = False
  7.     elif next_checkpoint_angle > 90 or next_checkpoint_angle < -90:
  8.         thrust = 0
  9.     elif next_checkpoint_angle > 45 or next_checkpoint_angle < -45:
  10.         thrust = 20
  11.     elif next_checkpoint_dist < 2600 and get_velocity(previous_x,previous_y,x,y) > 350 and next_checkpoint_angle < 30 and next_checkpoint_angle > -30:
  12.         thrust = 100
  13.         printx = 8000
  14.         printy = 4500
  15.     else:
  16.         thrust = 100
  17.     print(str(printx) + " " + str(printy) + " " + str(thrust))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement