Commit 1fef7aad by BellCodeEditor

auto save

parent b14097c0
Showing with 4 additions and 3 deletions
......@@ -19,7 +19,7 @@ hero = [pygame.image.load('hero1.png'),
index = 0
y=400
JumpStape='running'
t=30
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -29,8 +29,9 @@ while True:
if event.key==locals.K_SPACE:
JumpStape='up'
if JumpStape == 'up':
if y>150:
y-=5
if t>0:
y-=t
else:
JumpStape='down'
if JumpStape=='down':
......
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