Commit cd731034 by BellCodeEditor

save project

parent a331d1d0
Showing with 5 additions and 2 deletions
...@@ -25,21 +25,24 @@ while True: ...@@ -25,21 +25,24 @@ while True:
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
if event.type==locals.KEYDOWN: if event.type==locals.KEYDOWN:
if c=='run':
if event.key==locals.K_SPACE: if event.key==locals.K_SPACE:
c='up' c='up'
if c=='up': if c=='up':
if t>0: if t>=0:
y-=t y-=t
t-=2 t-=2
else: else:
c='down' c='down'
if c=='down': if c=='down':
if t<30: if t<=30:
y+=t y+=t
t+=2 t+=2
else: else:
c='run' c='run'
t=30
w=b[a] w=b[a]
if c=='run':
a+=1 a+=1
if a>4: if a>4:
a=0 a=0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment