Example #1
0
width = 700

root = tk.Tk()
root.config(width=width, height=heigh, bg='white')

startButton = tk.Button(root,
                        text="Iniciar el juego",
                        command=lambda: startGame())
startButton.place(x=(width / 2 - 45), y=25)

#espada = Espada()

print("--------------------")
print("Creando Caballero")
hero = Knight("Rhys", 50, 100)
hero.details()
#hero.equipment()

print("--------------------")

print("\nCreando Espada")
heroSword = Sword("Storm Song", 1, 11, 100)

print("Equipando espada ...")
hero.equip(heroSword)

print("\nCreando Arco")
heroBow = Bow("Armatus", 4, 7, 70)
print("Equipando arco ...")
hero.equip(heroBow)