Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. direction='stop'
  2. if direction=='appleleft':
  3. kidx=kidx-12
  4. elif direction=='appleright':
  5. kidx=kidx+12
  6. elif direction=='appleleftslow':
  7. kidx=kidx-6
  8. elif direction=='applerightslow':
  9. kidx=kidx+6
  10. if event.type==KEYUP:
  11. direction='stop'
  12. if event.type==KEYDOWN:
  13. ##controls
  14. if event.key==K_2 and scene=='choose':
  15. scene='title'
  16. elif event.key==K_1 and scene=='choose':
  17. scene='beachtitle'
  18. elif event.key==K_LEFT and points<1500 and scene=='game':
  19. direction='appleleft'
  20. elif event.key==K_RIGHT and points<1500 and scene=='game':
  21. direction='appleright'
  22. elif event.key==K_LEFT and points>=1499 and scene=='game':
  23. direction='appleleftslow'
  24. elif event.key==K_RIGHT and points>=1499 and scene=='game':
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement