Milestone 3 - Adventure Game Outline: Module Development
Milestone 3 - Adventure Game Outline: Module Development
For the third milestone, you will need to develop several modules that incorporate the actions throughout your game. Before you start, make sure you:
1 – incorporate any feedback from Milestone 2;
2 – discuss your game with your professor and make sure you have the ok to move forward with it.
You will create the modules needed for your action game. This will be for each part of your flowchart from Milestone 2 that has been designated by you or your professor as a good fit for a module.
EXAMPLE – Chapter 1 Modules for actions set in the game
This example shows a module for the interactions with locals within the town.
# This will create a randomly named villager to interact with
def villager():
global npcName
global response
# Below is a list we can store lots of things in a list and
# then retrieve them later.
responses = [“Hi”, “Are you a hero?”, “Are you from this village?”]
npcNameChoice = [“Dexter”, “Ryan”, “Dawn”, “Andie”]
# Shuffle will shuffle the list contents into a random order
shuffle(npcNameChoice)
npcName = npcNameChoice[0]
print(npcName, “:] Hello, I am “, npcName, “ , would you like to talk to me?”)
shuffle(responses)
answer = input(print(“Press y to talk to the villager”))
if answer == “y”:
print(npcName, “:] “, responses[0])
else:
print(npcName, “:] Goodbye”)