Commit 586f705d by BellCodeEditor

save project

parent 4b91aa1d
Showing with 6 additions and 0 deletions
......@@ -3,8 +3,14 @@ from pygame import locals
pygame.init()
pygame.display.set_mode((660,480))
background=pygame.image.load('bg.png')
right=pygame.image.load('right.png')
food=pygame.image.load('apple.png')
while True:
for envent in pygame.event.get():
if envent.type == locals.QUIT:
exit()
screen.bile(background,(0,0))
screen.bile(right,(240,120))
screen.bile(display,(360,300))
pygame.display.update()
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