Commit dea635b0 by BellCodeEditor

save project

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