Commit b63e724a by BellCodeEditor

save project

parent 9aea0cbd
Showing with 10 additions and 2 deletions
...@@ -69,5 +69,13 @@ while True: ...@@ -69,5 +69,13 @@ while True:
import random import random
if x==apple_x and y==apple_y: if x==apple_x and y==apple_y:
num1=random.randint(1,22)
num2=random.randint(1,16)
apple_x=random.randint(0,660) apple_x=random.randint(0,660)
apple_y=random.randint(0,480) apple_y=random.randint(0,480)
\ No newline at end of file else:
position.pop(0)
screen.blit(background,(0,0))
screen.blit(snake_head,position[-1])
for i in range(len(position)-1):
screen.blit(body,position)[i]
\ 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