Commit 880c8b5e by BellCodeEditor

auto save

parent 9d389d3c
Showing with 6 additions and 10 deletions
......@@ -23,16 +23,9 @@ while True:
setheading = "up"
if event.key == locals.K_DOWN and setheading != "up":
setheading = "down"
screen.blit(background,(0,0))
screen.blit(right,(x,y))
screen.blit(food,(90,90))
for i in range(len(list)-1):
screen.blit(body,(list[i]))
pygame.display.update()
FPSCLOCK.tick(1)
list.append((x,y))
list.pop(0)
print(list)
if setheading == "left":
x -= 30
elif setheading == "right":
......@@ -41,3 +34,5 @@ while True:
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