Commit f1026038 by BellCodeEditor

save project

parent fcb11ef8
Showing with 2 additions and 2 deletions
...@@ -31,7 +31,7 @@ index = 0 ...@@ -31,7 +31,7 @@ index = 0
y = 400 y = 400
jumpState = "runing" jumpState = "runing"
t = 30 t = 30
Block_list = pygame.sprite.Group() block_list = pygame.sprite.Group()
time = 0 time = 0
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
...@@ -88,7 +88,7 @@ while True: ...@@ -88,7 +88,7 @@ while True:
block_list.add(block) block_list.add(block)
for sprite in block_list: for sprite in block_list:
sprite.rect.x -= 8 sprite.rect.x -= 8
sprite.blit(sprite.image,(sprite.rect.x,sprite.rect.y)) screen.blit(sprite.image,(sprite.rect.x,sprite.rect.y))
if sprite.rect.x < 0-sprite.rect.width: if sprite.rect.x < 0-sprite.rect.width:
sprite.kill() sprite.kill()
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