Commit fe9b516b by BellCodeEditor

save project

parent 74b863f8
Showing with 3 additions and 2 deletions
...@@ -5,8 +5,9 @@ pygame.init() ...@@ -5,8 +5,9 @@ pygame.init()
fps=pygame.time.Clock() fps=pygame.time.Clock()
x,y=240,120 x,y=240,120
p=[(180,90),(180,120),(210,120),(x,y)] p=[(180,90),(180,120),(210,120),(x,y)]
apple_x=360 if x==apple_x and y==apple_y:
apple_y=300 apple_x=360
apple_y=300
screen = pygame.display.set_mode((660, 480)) screen = pygame.display.set_mode((660, 480))
background = pygame.image.load('bg.png') background = pygame.image.load('bg.png')
......
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