Commit cc195e99 by BellCodeEditor

save project

parent 9831d813
Showing with 12 additions and 0 deletions
......@@ -3,9 +3,20 @@ from pygame import locals
#初始化pygame。
pygame.init()
#创建窗口
screen = pygame.display.set_mode((660,480))
bg = pygame.image.load('bg.png')
bg = pygame.image.load('apple.png')
bg = pygame.image.load('body.png')
while True:
for event in pygame.event.get():
if event.type == locals.QUTT:
exit()
screen.blit(bg,(0,0))
screen.blit(right,(240,120))
screen.blit(food,(360,300))
pygame.display.undate()
\ 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