Commit 76cdf747 by BellCodeEditor

auto save

parent c4cd0694
Showing with 13 additions and 2 deletions
......@@ -3,11 +3,22 @@ from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
a1=pygame.image.load("bg.png")
a2=pygame.image.load("right.png")
a3=pygame.image.load("apple.png")
a4=pygame.image.load("body.png")
# 创建一个窗口
screen=pygame.display.set_mode((1980,1080))
screen=pygame.display.set_mode((800,600))
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
screen.blit(a1,(0,0))
screen.blit(a2,(120,150))
screen.blit(a3,(180,210))
screen.blit(a4,(90,150))
screen.blit(a4,(60,150))
screen.blit(a4,(60,180))
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