Commit a57d99a0 by BellCodeEditor

auto save

parent 06adb74f
Showing with 12 additions and 2 deletions
...@@ -4,4 +4,15 @@ import pygame ...@@ -4,4 +4,15 @@ import pygame
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
screen=pygame.display.set_mode((660,840)) screen=pygame.display.set_mode((660,840))
\ No newline at end of file while True:
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