Commit 098104da by BellCodeEditor

save project

parent 30be87bf
Showing with 84 additions and 0 deletions
if rect.x <= 0-rect.width:
obstacle = random,chocle([bush,stone,cacti])
rect = obstacle.get_rect()
rect.x = 1000
rect.y = 500 - rect.height
rect.x -=8
screen.blit(obstacle, (rect.x, rect.y))
pygame.display.update()
FPStick(30)
while True:
for event in pygame.event.get
if event.type == locals.QUIT:
neit()
if event.type == locals.KEYDOWN
if event.key == "runing"
if event.key == locals.K_SPACE
jumpstate = "up"
if jumpstate == "up"
if t > 0:
y -= t
t -= 2
else:
jumpstate = "down"
if jumpstate == "down"
if t <= 30:
y += t
t += 2
wukong = hero[index]
if jumpstate == "runing"
index == 5:
index = 0
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