Commit dea635b0 by BellCodeEditor

save project

parent c27ca6c9
Showing with 3 additions and 0 deletions
...@@ -44,6 +44,9 @@ obstacle = random.choice([stone,cacti,apple]) ...@@ -44,6 +44,9 @@ obstacle = random.choice([stone,cacti,apple])
rect= obstacle.get_rect() #获取图片的坐标和长宽属性 rect= obstacle.get_rect() #获取图片的坐标和长宽属性
rect.x=1000 rect.x=1000
rect.y=500-rect.height rect.y=500-rect.height
obstacle=Block(bush,cacti,stone)
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
......
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