Commit 259fba95 by BellCodeEditor

save project

parent 322ba4bb
Showing with 11 additions and 2 deletions
......@@ -5,9 +5,17 @@ from pygame import locals
pygame.init()
# 创建一个窗口
a=pygame.display.set_mode((660,180))
a=pygame.display.set_mode((660,480))
b=pygame.image.load("right.png")
c=pygame.image.load("bg.png")
d=pygame.image.load("apple.png")
while True:
for event in pygame.event.get():
print(a)
if event.type==locals.QUIT:
exit()
a.blit(c,(0,0))
a.blit(b,(90,0))
a.blit(d,(90,60))
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