Commit 6b30e6ab by BellCodeEditor

auto save

parent d89df383
Showing with 12 additions and 8 deletions
......@@ -25,13 +25,12 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero3.png'),
pygame.image.load('hero4.png'),
pygame.image.load('hero5.png')]
lu_x=0
shan_x=0
index = 0
y = 400
jumpState = "runing"
t = 30
aa=Block(bush,cacti,stone)
index=0
y=400
jumpState="runing"
t=30
bg_x=0
while True:
for event in pygame.event.get():
......@@ -81,6 +80,10 @@ while True:
screen.blit(aa.image, (aa.rect.x, aa.rect.y))
# 刷新画面
t
pygame.display.update()
FPS.tick(60)
\ 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