Commit 9b3cb138 by BellCodeEditor

save project

parent 612980b4
Showing with 16 additions and 2 deletions
......@@ -4,8 +4,23 @@ from pygame import locals
pygame.init()
# 创建一个窗口
backgaound = pygame.image.load('bg.png')
right = pygame.image.load('right.png')
body = pygame.image.load('body.png')
food = pygame.image.load('apple,png')
secreen = pygame.display.set_mode((660,800))
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
\ No newline at end of file
exit()
secreen.blit(backgaound,(0,0))
secreen.blit(right(240,120))
secreen.blit(food(360,300))
secreen.blit(body(210,120))
secreen.blit(body(180,120))
secreen.blit(body(180,90))
secreen.blit(background,(0,0))
pygame.display.updatte
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