Commit 29b140eb by BellCodeEditor

auto save

parent 583ba438
Showing with 2 additions and 0 deletions
......@@ -22,6 +22,7 @@ for i in range(20):
index = 0
y=400
jumpState='running'
t=0
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -47,6 +48,7 @@ while True:
screen.blit(background, (0, 0))
screen.blit(road, (0, 500))
screen.blit(wukong[index], (150,y))
if jumpState=='running':
index+=1
# 刷新画面
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