Commit 000e47e8 by BellCodeEditor

save project

parent 03911160
Showing with 10 additions and 5 deletions
......@@ -18,8 +18,9 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero4.png'),
pygame.image.load('hero5.png')]
index = 0
y=400
y=360
q=1
t=30
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -32,15 +33,19 @@ while True:
else:
q = 2
if q == 2:
if y > 100:
y-=30
if t >= 0:
y-=t
t-=5
else:
q=3
if q == 3:
if y < 400:
y+=2
if t <= 30:
y+=t
t+=5
else:
q=1
y+=40
a=hero[index]
index += 1
if index ==5:
......
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