Commit 4d684580 by BellCodeEditor

auto save

parent 19b4eed0
Showing with 10 additions and 0 deletions
......@@ -5,7 +5,16 @@ pygame.init()
# 创建一个窗口
win=pygame.display.set_mode((660,480))
bg=pygame.image.load('bg.png')
right=pygame.image.load('right.png')
x,y=240,120
kk=pygame.time.Clock()
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
x+=30
win.blit(bg,(0,0))
win.blit(right,(x,y))
pygame.display.update()
kk.tick(5)
\ 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