Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. @window.event
  2. def on_key_press(symbol, modifiers):
  3. print('Rotating')
  4.  
  5. global player_sprite
  6.  
  7. player_sprite.rotation += 1
  8.  
  9. if player_sprite.rotation == 360:
  10. player_sprite.rotation = 0
  11.  
  12. player_sprite.rotation = 180
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement