Ejemplo n.º 1
0
}, {
    'item': superpotion,
    'Quantity': 5
}, {
    'item': elixir,
    'Quantity': 5
}, {
    'item': hielixir,
    'Quantity': 5
}, {
    'item': grenade,
    'Quantity': 5
}]

# Instantiate Characters
player1 = Player("Goku :", 3500, 132, 300, 40, player1_spells, player1_items)
player2 = Player("Vegeta :", 3400, 130, 311, 40, player1_spells, player1_items)
player3 = Player("Gohan :", 2300, 148, 288, 40, player1_spells, player1_items)

# enemy party
enemy_spells = [
    kamehameh, Kaio_ken2, Energy_blasts, spirit_bomb, Cure, Aspirin
]

enemy1 = Player("Super Buu :", 5000, 130, 400, 23, enemy_spells, [])
enemy2 = Player("Golden Frieza :", 11000, 781, 525, 23, enemy_spells, [])
enemy3 = Player("Janemba  :", 3000, 221, 445, 23, enemy_spells, [])

players = [player1, player2, player3]
enemies = [enemy1, enemy2, enemy3]
running = True
Ejemplo n.º 2
0
superpotion = Item("Super-Potion", "potion", "Heals 1000 HP", 1000)
elixir = Item("Elixir", "elixir", "Fully restores HP of one party", 10000)
hielixir = Item("MegaElixir", "elixir", "Fully restores HP/MP", 10000)

grenade = Item("Granade", "attack", "Deals 500 damage", 500)

player1_spells = [Fire, Thunder, Blizzard, Meteor, Cure, Aspirin]
player1_items = [{'item': potion, 'Quantity': 15},
                 {'item': hipotion, 'Quantity': 5},
                 {'item': superpotion, 'Quantity': 5},
                 {'item': elixir, 'Quantity': 5},
                 {'item': hielixir, 'Quantity': 5},
                 {'item': grenade, 'Quantity': 5}]

# Instantiate Characters
player1 = Player("Naruto :", 3500, 132, 300, 40, player1_spells, player1_items)
player2 = Player("Sasuke :", 3400, 130, 311, 40, player1_spells, player1_items)
player3 = Player("Sakura :", 2300, 148, 288, 40, player1_spells, player1_items)

# enemy party
enemy_spells = [Fire, Thunder, Blizzard, Meteor, Cure, Aspirin]

enemy1 = Player("Obito  :", 5000, 130, 400, 23, enemy_spells, [])
enemy2 = Player("Madara :", 11000, 781, 525, 23, enemy_spells, [])
enemy3 = Player("Pain   :", 3000, 221, 445, 23, enemy_spells, [])

players = [player1, player2, player3]
enemies = [enemy1, enemy2, enemy3]
running = True
i = 0
Ejemplo n.º 3
0
        "quantity": 5
    },
    {
        "item": mega_elixr,
        "quantity": 2
    },
    {
        "item": grenade,
        "quantity": 12
    },
]
enemy_skills = [fire, meteor, lightning, cure_a2]
# enemy_items = []

# Instantiate [Player]
p1 = Player("[Str1kR](1)", 1460, 232, 303, 34, player_skills, player_items)
p2 = Player("[V4lc0n](2)", 2700, 288, 311, 25, player_skills, player_items)
p3 = Player("[RyptR](3)", 1635, 274, 268, 30, player_skills, player_items)

# instantiate [Player] => [Enemy]
enemy1 = Player("<D1ngu$>", 772, 142, 482, 325, enemy_skills, [])
enemy2 = Player("<M4v3rK>", 6085, 650, 525, 25, enemy_skills,
                [])  # CLI_UI looks better with the main enemy in middle
enemy3 = Player("<M1n10n>", 1772, 142, 482, 325, enemy_skills, [])
# PLAYERS_ARRAY
_PLAYERS = [p1, p2, p3]
_ENEMIES = [enemy1, enemy2, enemy3]

running = True
i = 0
print(
Ejemplo n.º 4
0
player3_items = [{
    'item': potion,
    'Quantity': 3
}, {
    'item': hipotion,
    'Quantity': 1
}, {
    'item': superpotion,
    'Quantity': 2
}, {
    'item': elixir,
    'Quantity': 1
}]

# Instantiate Characters
Naruto = Player("Naruto   ", 3800, 300, 80, 20, [Rasengan], player_items,
                "Modo Sennin")
Sasuke = Player("Sasuke   ", 3200, 250, 150, 30, [FireBall, Chidori],
                player2_items, "Sharingan")
Sakura = Player("Sakura   ", 4200, 180, 120, 15,
                [FlowerBlossom, Cure, SuperCure], player3_items, "Byakugou")
Kakashi = Player("Kakashi  ", 3000, 180, 90, 25,
                 [FireBall, Chidori, WaterDragon, MudWall], player_items,
                 "Sharingan")

allCharacters = [Naruto, Sasuke, Sakura, Kakashi]

# Instantiate Enemies
enemy1 = Player("Obito   ", 5000, 150, 200, 25, [FireBall, Kamui], [],
                "Sharingan")
enemy2 = Player("Madara  ", 8000, 180, 250, 30, [FireBall, Sussano], [],
                "Sharingan")
Ejemplo n.º 5
0
high_elixir = {
    "item": Item("High Elixir", 'elixir', "Fully Restores part's HP/MP", 9999),
    "quantity": 1
}  # no need for prop number here so give a high one

grenade = {
    "item": Item("Grenade", "attack", "Deals 500 Damage", 500),
    "quantity": 1
}

# Players Instance
player_magic_list = [fire, thunder, blizzard, cure, cura]
player_items_list = [
    potion, high_potion, super_potion, elixir, high_elixir, grenade
]
player1 = Player("Alaa", 3000, 1000, 320, 34, player_magic_list,
                 player_items_list)
player2 = Player("Hamza", 2750, 1200, 120, 34, player_magic_list,
                 player_items_list)
player3 = Player("Habiba", 4000, 1500, 500, 34, player_magic_list,
                 player_items_list)

players = [player1, player2, player3]

enemy_magic_list = [fire, thunder, blizzard, cure]
enemy_items_list = [
    potion, high_potion, super_potion, elixir, high_elixir, grenade
]
enemy1 = Player("Fire Dragon", 20200, 2200, 500, 25, enemy_magic_list, [])
enemy2 = Player("Dark Elf   ", 1500, 200, 800, 300, enemy_magic_list, [])
enemy3 = Player("Ghoul      ", 1300, 300, 900, 200, enemy_magic_list, [])
Ejemplo n.º 6
0
    "Item": big_blue_potion,
    "Quantity": 5
}, {
    "Item": purple_elixir,
    "Quantity": 1
}, {
    "Item": big_purple_elixir,
    "Quantity": 1
}, {
    "Item": shuriken,
    "Quantity": 3
}]

###Player & Enemy###
#Instantiate Players
player1 = Player("Deku", 1000, 200, 1000, 100, player1_spells, player1_items)
player2 = Player("Todoroki", 1000, 200, 125, 125, player1_spells,
                 player1_items)
player3 = Player("All-Might", 1000, 200, 200, 200, player1_spells,
                 player1_items)
#Instantiate Enemies
enemy1 = Player("Stain", 2500, 200, 100, 100, enemy_spells, [])
enemy2 = Player("Spinner", 1000, 200, 50, 50, enemy_spells, [])

players = [player1, player2, player3]
enemies = [enemy1, enemy2]

running = True

while running:
    print("=========================")
Ejemplo n.º 7
0
resore=Spell("Resore",20,200,"healing")


smpotion=Item("Small Health Potion","potion","Heals 20",20)
lgpotion=Item("Large Health Potion","potion","Heals 100",100)
elixir = Item("Elixir", "elixir", "Fully restores Health and Mana of one team member", 9999)
lgelixir = Item("Large Elixir", "elixir", "Fully restores team's Health and Mana", 9999)

dagger = Item("Dagger", "attack", "Deals 120 damage", 120)
bomb = Item("Bomb", "attack", "Deals 80 damage", 80)


hero_spells=[fire,ice,thunder,air,earth,heal,resore]
hero_items=[{"item":smpotion,"quantity":10},{"item":lgpotion,"quantity":5},{"item":elixir,"quantity":3},{"item":lgelixir,"quantity":1},{"item":dagger,"quantity":5},{"item":bomb,"quantity":8},]

hero1=Player("Tony  :",900,150,100,50,hero_spells,hero_items)
hero2=Player("Steve :",900,150,100,50,hero_spells,hero_items)
hero3=Player("John  :",900,150,100,50,hero_spells,hero_items)
enemy=Player("Thanos:",5000,100,200,25,[],[])

heroes=[hero1,hero2,hero3]

running=True

print(colors.FAIL+colors.BOLD+"You are under attack!"+colors.ENDC)

while running:
    print(colors.FAIL + "---------------------" + colors.ENDC)

    print("\n\n")
    print("NAME              HP                              MP")