Commit 9b2924b3 by BellCodeEditor

save project

parent 36233aeb
Showing with 10 additions and 1 deletions
......@@ -3,10 +3,18 @@ from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
# 创建一个窗口
background=pygame.image.load('bg.png')
suceen=pygame.image.load('right.png')
kceenw=pygame.image.load('apple.png')
sfhvgh=pygame.image.load('body.png')
srceen=pygame.display.set_mode((660,480))
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
srceen.blit (background,(0,0))
srceen.blit (suceen,(240,120))
srceen.blit (kceenw,(360,180))
srceen.blit (sfhvgh,(210,120))
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