예제 #1
0
                    select=0
                    while (select<1 or select>2):
                        select=int(raw_input("Your Choise: "))
                    if select==1:
                        enemigo.hp_lost(heroe.ataque)
                    else:
                        print "No dejes que te engañe"
                    aleat=random.randrange(1, 5)
                    print aleat
                    if (aleat==1):
                        print "goblin is watching"
                    else:
                        heroe.hp_lost(enemigo.ataque)
                        print "goblin ataca"
                print heroe.hp, enemigo.hp
                heroe.indiVida()
        if select==1:
            print "la otra ruta"
                        
                        
                
                 
elif select==2:
    pygame.mixer.music.load("C:\Python27\data\over.mp3")
    pygame.mixer.music.play()
    time.sleep(15)
    exit()
    

pygame.mixer.music.load("C:\Python27\data\PrevioBatalla.mp3")
pygame.mixer.music.play()