Commit a127a36a by BellCodeEditor

save project

parent dc23caa7
Showing with 7 additions and 0 deletions
...@@ -23,6 +23,8 @@ jumpState="running" ...@@ -23,6 +23,8 @@ jumpState="running"
y=400 y=400
t=36 t=36
stone_x=1000
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:
...@@ -57,6 +59,11 @@ while True: ...@@ -57,6 +59,11 @@ while True:
screen.blit(background, (0, 0)) screen.blit(background, (0, 0))
screen.blit(road, (0, 500)) screen.blit(road, (0, 500))
screen.blit(hero[index], (150, y)) screen.blit(hero[index], (150, y))
screen.blit(stone,(stone_x,400))
if stone_x<-200:
stone_x=1000
stone_x-=20
# 刷新画面 # 刷新画面
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