Commit 2384c8e9 by BellCodeEditor

auto save

parent 2742489a
Showing with 6 additions and 1 deletions
...@@ -31,6 +31,10 @@ index = 0 ...@@ -31,6 +31,10 @@ index = 0
y = 400 y = 400
jumpState = "runing" jumpState = "runing"
t = 30 t = 30
road_x = 0
bg_x = 0
obstacle = Block(bush,cacti,stone)
block_list =pygame.sprite.Group()
aa=Block(bush,cacti,stone) aa=Block(bush,cacti,stone)
while True: while True:
...@@ -79,7 +83,8 @@ while True: ...@@ -79,7 +83,8 @@ while True:
aa=Block(bush,cacti,stone) aa=Block(bush,cacti,stone)
aa.rect.x -= 8 aa.rect.x -= 8
obstacle = Block(bush,cacti,stone)
block_list.add(obstacle)
screen.blit(aa.image, (aa.rect.x, aa.rect.y)) screen.blit(aa.image, (aa.rect.x, aa.rect.y))
# 刷新画面 # 刷新画面
pygame.display.update() 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