Commit a7fefb7a by BellCodeEditor

auto save

parent 2e1fa345
Showing with 19 additions and 8 deletions
......@@ -26,14 +26,22 @@ while True:
p.append((x,y))
p.pop(0)
if event.type == locals.KEYDOWN:
if event.type == locals.KEYDOWN and s!="left":
s+=30
if event.type == locals.KEYDOWN and s="left":
s+=30
if event.type == locals.KEYDOWN and s="left":
s-=30
if event.type == locals.KEYDOWN and s!="left":
s-=30
if event == locals.KEYRIGHT and s!="left":
x+=30
if event == locals.KEYLEFT and s!="right":
x-=30
if event == locals.KEYUP and s!="down":
y-=30
if event == locals.KEYDOWN and s!="up":
y+=30
if right:
x+=30
elif left:
x-=30
elif up:
y-=30
elif down:
y+=30
......
a="shit"
print(a*10)
\ No newline at end of file
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