예제 #1
0
     raw_input("Press enter to skip or to continue...")
     pygame.mixer.music.stop()
     select=0
     while (select!=1):
         print "Avanzar? (1)Si (2)Observar un rato mas"
         pygame.mixer.music.load("C:\Python27\data\onza.mp3")
         pygame.mixer.music.play()
         select=int(raw_input("Tu eleccion: "))
 if select==2:
     
     heroe.hp=heroe.hp-5
     pygame.mixer.music.load("C:\Python27\data\charco.mp3")
     pygame.mixer.music.play()
     raw_input("Press enter to skip or to continue...")
     pygame.mixer.music.stop()
     heroe.spell=3000
     pygame.mixer.music.load("C:\Python27\data\hechizo.mp3")
     pygame.mixer.music.play()
     raw_input("Press enter to skip or to continue...")
     pygame.mixer.music.stop()
     pygame.mixer.music.load("C:\Python27\data\escal.mp3")
     pygame.mixer.music.play()
     raw_input("Press enter to skip or to continue...")
     pygame.mixer.music.stop()
     select=0
     while select!=1:
         pygame.mixer.music.load("C:\Python27\data\conti.mp3")
         pygame.mixer.music.play()
         time.sleep(3)
         select=int(raw_input("Tu eleccion: "))