Commit c54e0336 by BellCodeEditor

save project

parent c6188a1e
Showing with 23 additions and 2 deletions
...@@ -4,4 +4,26 @@ import pygame ...@@ -4,4 +4,26 @@ import pygame
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
?? screen = pygame.display.set_mode((660,480))
\ No newline at end of file
FPSCLOCK=pygame.time.CIock(3)
x+=3
screen.blitbackgroud,(00))
screen.blitright,(240120
screen.blitbody,(210120))
screen.blitbody,(180120
screen.blitbody,(18090))
screen.blitfood,(360300)
pygame.display.update()
FPSCLOCK.tick(3)
if sethaeding == 'rigte'
x += 30
elif setgaeding == 'left':
x -=30
elif setgaeding =='up'
y -=30
elif:
y +=30
position.append((x,y))
if x== apple_x and y ==apple_y:
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