Commit 292325b0 by BellCodeEditor

save project

parent d0ff7e48
Showing with 10 additions and 0 deletions
...@@ -33,3 +33,12 @@ while True: ...@@ -33,3 +33,12 @@ while True:
screen.blit(food, (360, 300)) screen.blit(food, (360, 300))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
if setheading =="right":
x+=30
elif setheading =="left":
x-=30
elif setheading == "up":
y-=30
else :
y+=30
\ 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