Exemplo n.º 1
0
#---------FOOD--------------------------------
chocolate = Food()
noodles = Food()
banana = Food()
apple = Food()
energy_drink = Food()
coffee = Food()
beer = Food()
water = Food()
pizza = Food()
avocado = Food()
medicine = Food()

#--------CREATURES----------------------------
mutant = Creature()
drone = Creature()
cyborg_jeff_bezos = Creature()

initItems = [
    echo, echo_dot, echo_show, button, switch, keypad, paper, kindle, computer,
    torch, medicine
]

initWeapons = [sword, knife, machete, pistol, rifle]

initFood = [
    chocolate, noodles, banana, apple, energy_drink, coffee, beer, water
]

initCreatures = [mutant, drone, cyborg_jeff_bezos]
Exemplo n.º 2
0
chocolate = Food("chocolate", "wow this chocolate is so well preserved, it looks sweet and delicious", False, [examine, take, eat, drop, get])
noodles = Food("noodles", "wow these noodles are so well preserved, definitley not rotten", False, [examine, take, eat, drop, get])
banana = Food("banana", "a surpringly perfectly ripe banana, might have monkey aids though", False, [examine, take, eat, drop, get])
apple = Food("apple", "a pink lady apple", False, [examine, take, eat, drop, get])
energy_drink = Food("energy drink", "a popular energy drink stole from a basement hackathon", False, [examine, take, eat, drop, get])
coffee = Food("coffe", "a cup of coffee, black", False, [examine, take, eat, drop, get])
beer = Food("beer", "a glass of Stella not bud lite", False, [examine, take, eat, drop, get])
water = Food("water", "clear blue water, might also have aids", False, [examine, take, eat, drop, get])
pizza = Food("pizza", "a hawaiian pizza, so basically worthelss", False, [examine, take, eat, drop, get])
avocado = Food("avocado", "an avocado, could be used on toast unless you're a millenial", False [examine, take, eat, drop, get])
medicine = Food("medicine", "generic medicine, or hard LSD, your guess", False, [examine, take, drop, get])



#--------CREATURES----------------------------
mutant = Creature("mutant", False, 15)
drone = Creature("drone", False, 10)
cyborg_jeff_bezos = Creature("cyborg jeff bezos", F)




initItems = [echo, echo_dot, echo_show, button, switch, keypad, paper, kindle, computer, torch, medicine]

initWeapons = [sword, knife, machete, pistol, rifle]

initFood = [chocolate, noodles, banana, apple, energy_drink, coffee, beer, water]

initCreatures = [mutant, drone, cyborg_jeff_bezos]

Exemplo n.º 3
0
def spawn_enemy():
    enemy = Creature(random.randint(1, 10), random.randint(1, 10))
    print("An enemy appears\n")
    return enemy