Commit aff60bde by BellCodeEditor

save project

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