Commit aff60bde by BellCodeEditor

save project

parent a2c04fd2
Showing with 7 additions and 3 deletions
...@@ -3,12 +3,16 @@ from pygame import locals ...@@ -3,12 +3,16 @@ from pygame import locals
pygame.init() pygame.init()
screen=pygame.display.set_mode((660,480)) screen=pygame.display.set_mode((660,480))
#加载图片 #加载图片
background=pygame.image.load('bg.png')
right=
apple=
body=
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
#渲染图片 #渲染图片
screen.blit(background,(0,0))
#更新界面 #更新界面
pygame.display.update()
\ No newline at end of file \ 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