Commit 378fef34 by BellCodeEditor

save project

parent a81065f6
Showing with 6 additions and 0 deletions
import random
import pygame
from pygame import locals
......@@ -13,6 +14,11 @@ right = pygame.image.load('right.png')
food = pygame.image.load('apple.png')
body = pygame.image.load('body.png')
if x==a_x and y==_y:
a_x=random.randint(0,21)*30
a_x=random.randint(0,15)*30
else:
po
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......
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