Commit 97bf09d1 by BellCodeEditor

auto save

parent 06a1025a
Showing with 11 additions and 1 deletions
...@@ -3,11 +3,20 @@ from pygame import locals ...@@ -3,11 +3,20 @@ from pygame import locals
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
s=pygame.image.load("apple.png")
ss=pygame.image.load("right.png")
sss=pygame.image.load("bg.png")
# 创建一个窗口 # 创建一个窗口
pygame.display.set_mode((660,400)) v=pygame.display.set_mode((660,400))
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type==locals.QUIT: if event.type==locals.QUIT:
exit() exit()
v.blit(sss,(0,0))
v.blit(ss,(90,90))
v.blit(s,(120,30))
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