Commit 2d5d3a6e by BellCodeEditor

save project

parent c7de9b62
Showing with 6 additions and 6 deletions
...@@ -5,12 +5,12 @@ pygame.init() ...@@ -5,12 +5,12 @@ pygame.init()
# 创建一个窗口 # 创建一个窗口
screen=pygame.display.set_mode((660,480)) screen=pygame.display.set_mode((660,480))
bg=pygame.image.load('bg.png') bg=pygame.image.load("bg.png")
sb=pygame.image.load("apple.png") apple=pygame.image.load("apple.png")
cb=pygame.image.load("right.png") rr=pygame.image.load("right.png")
bb=pygame.image.load("body.png")
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()
pygame.blit(bg,(0,0))
\ 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