Commit 910adfdf by BellCodeEditor

save project

parent fc409a8f
Showing with 9 additions and 3 deletions
...@@ -4,13 +4,18 @@ from pygame import locals ...@@ -4,13 +4,18 @@ from pygame import locals
pygame.init() pygame.init()
background = pygame.image.load('bg.png') background = pygame.image.load('bg.png')
background = pygame.image.load('right.png') b = pygame.image.load('right.png')
background = pygame.image.load('bg.png') watermalen = pygame.image.load('apple.png')
body = pygame.image.load('body.png')
screen=pygame.display.set_mode((600,480))# 创建一个窗口 screen=pygame.display.set_mode((600,480))# 创建一个窗口
while True: while True:
for e in pygame.event.get(): for e in pygame.event.get():
if e.type == locals.QUIT: if e.type == locals.QUIT:
exit() exit()
screen.blit(background,(0,0)) screen.blit(background,(0,0))
screen.blit(b,(180,60))
screen.blit(body,(180,90))
screen.blit(body,(180,120))
screen.blit(body,(210,120))
screen.blit(watermalen,(30,30))
pygame.display.update() 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