Commit 2e132dd8 by BellCodeEditor

save project

parent 213ccc98
Showing with 3 additions and 3 deletions
...@@ -33,8 +33,8 @@ time=0 ...@@ -33,8 +33,8 @@ time=0
y = 400 y = 400
jumpState = "runing" jumpState = "runing"
t = 30 t = 30
aa=Block(bush,cacti,stone) #aa=Block(bush,cacti,stone)
block_list=
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
...@@ -89,7 +89,7 @@ while True: ...@@ -89,7 +89,7 @@ while True:
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)) sprite.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()
screen.blit(aa.image, (aa.rect.x, aa.rect.y)) screen.blit(aa.image, (aa.rect.x, aa.rect.y))
# 刷新画面 # 刷新画面
......
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