from story import Story from story_node import StoryNode from player import Player from activity import Activity from theater_acts import * from text_to_speech import * #create each node in the story theater = StoryNode("theater") box_office = StoryNode("box office") concessions = StoryNode("concessions") ticket_checker = StoryNode("ticket checker") movie = StoryNode("movie") #add connections between nodes theater.addChild(box_office).addChild(concessions) concessions.addChild(box_office).addChild(ticket_checker) box_office.addChild(concessions).addChild(ticket_checker) ticket_checker.addChild(movie) #add prerequisites (something that must be completed before moving to this node) ticket_checker.addPrereq("ticket") #movies and menu are lists of options for the activity movies = ["Inside Out", "Tomorrowland", "Minions", "Home"] menu = ["soda", "popcorn", "candy", "finished"] #create activities and add them to their corresponding nodes
from story import Story from story_node import StoryNode from player import Player from activity import Activity from zoo_acts import * import random from text_to_speech import * #nodes entrance = StoryNode("entrance") parking_lot = StoryNode("goodbye") monkeys = StoryNode("monkeys") elephants = StoryNode("elephants") lions = StoryNode("lions") tigers = StoryNode("tigers") penguins = StoryNode("penguins") otters = StoryNode("otters") pandas = StoryNode("pandas") exhibits = [monkeys, elephants, lions, tigers, penguins, otters, pandas] current_exhibits = [] #pick one of the exhibits for x in range(4): rand_num = random.randint(0, len(exhibits)-1) current_exhibits.append(exhibits[rand_num]) exhibits.remove(exhibits[rand_num]) #add children entrance.addChild(current_exhibits[0]).addChild(current_exhibits[1]).addChild(current_exhibits[2]).addChild(current_exhibits[3]).addChild(parking_lot)
from story import Story from story_node import StoryNode from player import Player from activity import Activity from text_to_speech import * from _vault_acts import * #Nodes main = StoryNode("main") left = StoryNode("left") right = StoryNode("right") #Children main.addChild(left).addChild(right) right.addChild(main) left.addChild(main) #Activities main.setActivity(Activity(main_act)) left.setActivity(Activity(left_act)) right.setActivity(Activity(right_act)) #Storyline vault_story_line = [main, left, right]
from story import Story from story_node import StoryNode from player import Player from activity import Activity from theater_acts import * from text_to_speech import * #create each node in the story theater = StoryNode("theater") box_office = StoryNode("box office") concessions = StoryNode("concessions") ticket_checker = StoryNode("ticket checker") movie = StoryNode("movie") #add connections between nodes theater.addChild(box_office).addChild(concessions) concessions.addChild(box_office).addChild(ticket_checker) box_office.addChild(concessions).addChild(ticket_checker) ticket_checker.addChild(movie) #add prerequisites (something that must be completed before moving to this node) ticket_checker.addPrereq("ticket") #movies and menu are lists of options for the activity movies = ["Inside Out", "Tomorrowland", "Minions", "Home"] menu = ["soda", "popcorn", "candy", "finished"] #create activities and add them to their corresponding nodes theater.setActivity(Activity(theaterActivity)) box_office.setActivity(Activity(boxOfficeActivity, movies))
from story import Story from story_node import StoryNode from player import Player from activity import Activity from text_to_speech import * from pet_acts import * """NODES = Q'S""" have_pets = StoryNode("have pets","Do you have any pets?") #dream_pet = StoryNode("dream pet", "What would be your dream pet to have?") #basic info kinds_of_pets = StoryNode("kinds of pets", "Tell me about a pet of yours. What kind of pet is it?") pet_name = StoryNode("name") color = StoryNode("color") big_or_small = StoryNode("size") pet_breed = StoryNode("breed") age = StoryNode("age") sound = StoryNode("sound") mess = StoryNode("mess") sleep = StoryNode("sleep") food = StoryNode("food") treat = StoryNode("treat") favorite_toy = StoryNode("toy") siblings = StoryNode("siblings") other_pets = StoryNode("other pets") temperment = StoryNode("temperment") vet = StoryNode("vet") walk = StoryNode("walks")
from story import Story from story_node import StoryNode from player import Player from activity import Activity from zoo_acts import * import random from text_to_speech import * #nodes entrance = StoryNode("entrance") parking_lot = StoryNode("goodbye") monkeys = StoryNode("monkeys") elephants = StoryNode("elephants") lions = StoryNode("lions") tigers = StoryNode("tigers") penguins = StoryNode("penguins") otters = StoryNode("otters") pandas = StoryNode("pandas") exhibits = [monkeys, elephants, lions, tigers, penguins, otters, pandas] current_exhibits = [] #pick one of the exhibits for x in range(4): rand_num = random.randint(0, len(exhibits) - 1) current_exhibits.append(exhibits[rand_num]) exhibits.remove(exhibits[rand_num]) #add children entrance.addChild(current_exhibits[0]).addChild(current_exhibits[1]).addChild( current_exhibits[2]).addChild(current_exhibits[3]).addChild(parking_lot)