Commit 0d0ab49f by BellCodeEditor

save project

parent a1686754
Showing with 22 additions and 2 deletions
...@@ -4,4 +4,24 @@ import pygame ...@@ -4,4 +4,24 @@ import pygame
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
screen = pygame.display.set_mode((660,480)) while True:
\ No newline at end of file screen = pygame.display.set_mode((660,480))
for event in pygame.event.get():
if event.type == 12:
exit()
backgrund = pygame.image.load("bg.png")
right = pygame.image.load("right.png")
apple = pygame.image.load("apple.png")
body1 = pygame.image.load("body.png")
body2 = pygame.image.load("body.png")
body3 = pygame.image.load("body.png")
screen.blit(backgrund,(0,0))
screen.blit(right,(240,120))
screen.blit(apple,(330,210))
screen.blit(body1,(210,120))
screen.blit(body2,(180,120))
screen.blit(body3,(120,90))
pygame.display.upgate()
\ 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