Commit 3db7d78e by BellCodeEditor

save project

parent 6cfba4f3
Showing with 14 additions and 2 deletions
......@@ -4,8 +4,15 @@ from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
background=pygame.image.load('bg.png')
right=pygame.image.load('right.png')
food=pygame.image.load('apple.png')
# 创建一个窗口
screen=pygame.display.setattr__((660,480))
fpsclock=pygame.time.clock()
while True:
for event in pygame.event.get():
print(event)
......@@ -13,4 +20,9 @@ while True:
exit()
screen=pygame.blit(background(0,0))
screen=pygame.blit(right(240,120))
screen=pygame.blit(booy(240,120))
\ No newline at end of file
screen=pygame.blit(booy(210,120))
screen=pygame.blit(booy(180,120))
screen=pygame.blit(booy(150,120))
screen=pygame.blit(booy(150,150))
screen=pygame.blit(booy(360,300))
pygame.display.urgenath()
\ 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