Commit f80cc748 by BellCodeEditor

save project

parent 69d286a9
Showing with 14 additions and 4 deletions
......@@ -2,10 +2,20 @@ import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
b=pygame.image.load('bg.png')
c=pygame.image.load('up.png')
d=pygame.image.load('apple.png')
f=pygame.image.load('body.png')
# 创建一个窗口
pygame.display.set_mode((660,480))
e=pygame.display.set_mode((660,480))
while True:
for a in pygame.event.get():
if a.type==locals.QUIT:
exit()
\ No newline at end of file
exit()
e.blit(b,(0,0))
e.blit(c,(300,120))
e.blit(d,(210,300))
e.blit(f,(300,150))
e.blit(f,(300,180))
e.blit(f,(300,210))
pygame.display.update()
\ 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