Commit 0772e125 by BellCodeEditor

save project

parent 1829b765
Showing with 22 additions and 3 deletions
......@@ -4,9 +4,29 @@ import pygame
pygame.init()
# 创建一个窗口
screen = pygame.display.set_mode((800,600))
screen = pygame.display.set_mode((630,600))
bg = pygame.image.load("bg.png")
right = pygame.image.load("right.png")
body = pygame.image.load("body.png")
body = pygame.image.load("body.png")
food = pygame.image.load("apple.png")
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
exit()
\ No newline at end of file
exit()
screen.blit(bg,(0,0))
screen.blit(right,(300,150))
screen.blit(body,(270,150))
screen.blit(body,(240,150))
screen.blit(food,(450,150))
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