Commit edbeba2a by BellCodeEditor

save project

parent ce5c2649
Showing with 3 additions and 0 deletions
...@@ -23,6 +23,8 @@ position = [(180, 90), (180, 120), (210, 120), (x, y)] ...@@ -23,6 +23,8 @@ position = [(180, 90), (180, 120), (210, 120), (x, y)]
setheading = "right" setheading = "right"
snake_head = right snake_head = right
FS=0
font=pygame.font.Font(neuropol.ttf,10)
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
...@@ -58,6 +60,7 @@ while True: ...@@ -58,6 +60,7 @@ while True:
a2=random.randint(1,20) a2=random.randint(1,20)
ax=a1*30-30 ax=a1*30-30
ay=a2*30-30 ay=a2*30-30
FS+=1
else: else:
position.pop(0) position.pop(0)
......
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