Commit ee9d381a by BellCodeEditor

save project

parent a4c0e9a2
Showing with 2 additions and 2 deletions
......@@ -21,7 +21,7 @@ while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
if event.type == locals.KEY_DOWN:
if event.type == locals.KEYDOWN:
if event.key == locals.K_RIGHT:
if center[1]>1:
center[1]=center[1]+1
......@@ -29,7 +29,7 @@ while True:
if center[1]>1:
center[1]=center[1]-1
elif event.key == locals.K_DOWN:
if center[0]>25:
if center[0]<25:
center[1]=center[1]-1
......
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