Commit fed807b1 by BellCodeEditor

auto save

parent 5587dc4f
Showing with 1 additions and 25 deletions
......@@ -6,16 +6,11 @@ screen = pygame.display.set_mode((660, 480))
x=240
y=120
FPS=3
setheading="right"
snake_www=right
background = pygame.image.load('bg.png')
right = pygame.image.load('right.png')
food = pygame.image.load('apple.png')
body = pygame.image.load('body.png')
right = pygame.image.load('right.png')
left = pygame.image.load('left.png')
down = pygame.image.load('down.png')
up = pygame.image.load('up.png')
position=[(180,90),(180,120),(210,120),(x,y)]
......@@ -23,25 +18,6 @@ while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
if event.type == locals K_UP and setheading!=down
FPSCLOCK = pygame.time.Clock()
FPSCLOCK.tick(FPS)
......
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