Commit 1d6878c6 by BellCodeEditor

auto save

parent a57d99a0
Showing with 2 additions and 12 deletions
...@@ -4,15 +4,4 @@ import pygame ...@@ -4,15 +4,4 @@ import pygame
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
screen=pygame.display.set_mode((660,840)) screen=pygame.display.set_mode((660,840))
while True: \ No newline at end of file
for event in pygame.event.get():
print(event)
if event.type==locals.QUIT:
exit()
background=pygame.image.load(bg.png)
a=pygame.image.load(apple.png)
b=pygame.image.load(body.png)
c=pygame.image.load(down.png)
screen.blit(background,(0,0))
pygame.display.update()
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