Commit cbdc7286 by BellCodeEditor

save project

parent 70ecf7c4
Showing with 12 additions and 9 deletions
......@@ -3,12 +3,15 @@ hero=[pygame.image.load('hero1.png'),
pygame.image.load('hero3.png'),
pygame.image.load('hero4.png'),
pygame.image.load('hero5.png')]
index=0
while True:
for event in pygane.event.get()
if event.type==locals.QUIT:
exit
if event.type==locals.KEYDOWN:
if event.key==locals.K_SPACE:
jumpState="up"
if jumpState=="up"
if y > 150:
y-=5
else:
jumpState="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