Commit 420b5792 by BellCodeEditor

save project

parent c7c9cba7
Showing with 5 additions and 1 deletions
...@@ -55,7 +55,11 @@ while True: ...@@ -55,7 +55,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(wukong, (150, y)) screen.blit(wukong, (150, y))
if rondomRect.x<0-rondomRect.width:
rondomNum = random.choice([stone,cacti,apple])
rondomRect = rondomNum.get_rect()
rondomRect.x = 1000
rondomRect.y = 500-rondomRect.height
rondomRect.x-=8 rondomRect.x-=8
screen.blit(rondomNum,(rondomRect.x,rondomRect.y)) screen.blit(rondomNum,(rondomRect.x,rondomRect.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