Commit 32afd04b by BellCodeEditor

save project

parent d165c430
Showing with 5 additions and 0 deletions
...@@ -5,6 +5,7 @@ pygame.init() ...@@ -5,6 +5,7 @@ pygame.init()
shabby = pygame.image.load('bg.png') shabby = pygame.image.load('bg.png')
sha = pygame.image.load('right.png') sha = pygame.image.load('right.png')
bby = pygame.image.load('apple.png') bby = pygame.image.load('apple.png')
bb = pygame.image.load('body.png')
# 创建一个窗口 肯定好玩的海军部队和shabby # 创建一个窗口 肯定好玩的海军部队和shabby
screen = pygame.display.set_mode((660,480)) screen = pygame.display.set_mode((660,480))
while True: while True:
...@@ -14,4 +15,7 @@ while True: ...@@ -14,4 +15,7 @@ while True:
screen.blit(shabby,(0,0)) screen.blit(shabby,(0,0))
screen.blit(sha,(240,120)) screen.blit(sha,(240,120))
screen.blit(bby,(360,300)) screen.blit(bby,(360,300))
screen.blit(bb,(210,120))
screen.blit(bb,(180,120))
screen.blit(bb,(180,150))
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