Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- direction='stop'
- if direction=='appleleft':
- kidx=kidx-12
- elif direction=='appleright':
- kidx=kidx+12
- elif direction=='appleleftslow':
- kidx=kidx-6
- elif direction=='applerightslow':
- kidx=kidx+6
- if event.type==KEYUP:
- direction='stop'
- if event.type==KEYDOWN:
- ##controls
- if event.key==K_2 and scene=='choose':
- scene='title'
- elif event.key==K_1 and scene=='choose':
- scene='beachtitle'
- elif event.key==K_LEFT and points<1500 and scene=='game':
- direction='appleleft'
- elif event.key==K_RIGHT and points<1500 and scene=='game':
- direction='appleright'
- elif event.key==K_LEFT and points>=1499 and scene=='game':
- direction='appleleftslow'
- elif event.key==K_RIGHT and points>=1499 and scene=='game':
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement