Commit d6f478b6 by BellCodeEditor

auto save

parent 5903ab3a
Showing with 5 additions and 6 deletions
......@@ -32,8 +32,8 @@ y = 400
jumpState = "runing"
t = 30
road_x=0
aa=Block(bush,cacti,stone)
block_list =pygame.sprite.Group()
#aa=Block(bush,cacti,stone)
block_list=pygame.sprite.Group()
while True:
for event in pygame.event.get():
......@@ -76,10 +76,10 @@ while True:
screen.blit(road, (lu_x, 500)) # 路
screen.blit(wukong, (150, y)) # 悟空
aa =Block(bush,cacti,stone)
aa=Block(bush,cacti,stone)
block_list.add(aa)
for sprite in block_list:
sprite.rect.x -=8
sprite.rect.x-=8
screen.blit(sprite.image,(sprite.rect.x,sprite.rect.y))
......@@ -87,4 +87,3 @@ while True:
# 刷新画面
pygame.display.update()
FPS.tick(60)
\ No newline at end of file
\ 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