a guest Apr 18th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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':
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand