Commit 2d6764bf by BellCodeEditor

save project

parent ac43e5a1
Showing with 10 additions and 1 deletions
...@@ -5,8 +5,17 @@ from pygame import locals ...@@ -5,8 +5,17 @@ from pygame import locals
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
d=pygame.display.set_mode((660,480)) screen=pygame.display.set_mode((660,480))
c=pygame.image.load("apple.png")
h=pygame.image.load("bg.png")
e=pygame.image.load("right.png")
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()
screen.blit(h,(0,0))
screen.blit(e,(0,0))
screen.blit(c,(630,450))
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