Commit 035782a0 by BellCodeEditor

save project

parent 642fbde0
Showing with 11 additions and 4 deletions
......@@ -20,15 +20,22 @@ while True:
if event.type==locals.QUIT:
exit()
if event.type==locals.KEYDOWN:
if event.key==K_RIGHT and heah!='left':
if event.key==locals.K_RIGHT and heah!='left':
heah='right'
if event.key==K_RIGHT and heah!='right':
if event.key==locals.K_RIGHT and heah!='right':
heah='left'
if event.key==K_RIGHT and heah!='down':
if event.key==locals.K_RIGHT and heah!='down':
heah='up'
if event.key==K_RIGHT and heah!='up':
if event.key==locals.K_RIGHT and heah!='up':
heah='down'
if heah=="right":
x+=30
if heah=="left":
x-=30
if heah=="down":
y+=30
if heah=="up":
y-=30
pos.append((x,y))
pos.pop(0)
screen.blit(bg,(0,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