Commit e785124e by BellCodeEditor

save project

parent e133f584
Showing with 7 additions and 1 deletions
...@@ -5,9 +5,11 @@ from pygame import locals ...@@ -5,9 +5,11 @@ from pygame import locals
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
screen = pygame.display.set_mode((600,400)) screen = pygame.display.set_mode((800,600))
#载入图片 #载入图片
bg = pygame.image.load('bg.png') bg = pygame.image.load('bg.png')
body = pygame.image.load('body.png')
right = pygame.image.load('right.png')
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
...@@ -17,3 +19,7 @@ while True: ...@@ -17,3 +19,7 @@ while True:
#渲染图片 #渲染图片
screen.blit(bg,(0,0)) screen.blit(bg,(0,0))
screen.blit(body,(100,350))
screen.blit(right,(400,50))
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