Commit 2cce1eac by BellCodeEditor

save project

parent f4f03f2b
Showing with 13 additions and 13 deletions
......@@ -4,19 +4,19 @@ from pygame import locals
pygame.init()
# 创建一个窗口
背景=pygame.image.load("bg.png")
=pygame.image.load("right.png")
食物=pygame.image.load("apple.png")
身体=pygame.image.load("body.png")
sb=pygame.display.set_mode((250,250))
a=pygame.image.load("bg.png")
b=pygame.image.load("right.png")
c=pygame.image.load("apple.png")
d=pygame.image.load("body.png")
screen=pygame.display.set_mode((1000,600))
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
screen.blit(背景,(0,0))
screen.blit(,(180,120))
screen.blit(食物,(240,360))
screen.blit(身体,(150,120))
screen.blit(身体,(120,120))
screen.blit(身体,(90,120))
pygame.display.update()
\ No newline at end of file
screen.blit(a,(0,0))
screen.blit(b,(180,120))
screen.blit(d,(150,120))
screen.blit(d,(120,120))
screen.blit(d,(90,120))
screen.blit(c,(240,360))
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