pygame.mixer.init(22050,-16,2,2048) pygame.mixer.music.load("C:\Python27\data\demoscar.mp3") pygame.mixer.music.play() time.sleep(3) pygame.mixer.music.load("C:\Python27\data\ero.mp3") pygame.mixer.music.play() pygame.mixer.music.load("C:\Python27\data\ero2.mp3") pygame.mixer.music.play() nombre=raw_input("--> ") pygame.mixer.music.load("C:\Python27\data\clase.mp3") pygame.mixer.music.play() select=0 heroe=Heroe() while (select>3 or select<1): select=int(raw_input("--> ")) if select==1: heroe.clasWar() elif select==2: heroe.clasMage() elif select==3: heroe.clasRou() else: print "Wrong Answer" print nombre heroe.mostrar() pygame.mixer.music.stop()
pygame.mixer.init(22050,-16,2,2048) #print random.randrange(1,5) pygame.mixer.music.load("C:\Python27\data\demoscar.mp3") pygame.mixer.music.play() raw_input("Press enter to skip or to continue...") pygame.mixer.music.load("C:\Python27\data\ero.mp3") pygame.mixer.music.play() pygame.mixer.music.load("C:\Python27\data\ero2.mp3") pygame.mixer.music.play() nombre=raw_input("--> ") pygame.mixer.music.load("C:\Python27\data\clase.mp3") pygame.mixer.music.play() select=0 heroe=Heroe() while (select>3 or select<1): select=int(raw_input("--> ")) if select==1: heroe.clasWar() elif select==2: heroe.clasMage() elif select==3: heroe.clasRou() else: pygame.mixer.music.load("C:\Python27\data\clase.mp3") pygame.mixer.music.play() print nombre heroe.mostrar() pygame.mixer.music.stop()