0% found this document useful (0 votes)
39 views9 pages

Project Main

Uploaded by

owoiyakehinde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views9 pages

Project Main

Uploaded by

owoiyakehinde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Text-Based Adventure Game Project Report

GROUP 4 PROJECT

Members Include :

*Owoiya Richard - 2021002710

*Victor Miracle - 2021002207

*Wasiu Elijah kolawole - 2021002961

*Oke Oluwaseyi - 2021002837

*Okegbola Emmanuel Tosin - 2021003031

*Adebayo Olanrewaju - 2021002555

*Adedoja David - 2021002760

*Adetunji Precious Ayomide - 2021002970

*Silas Osuntola - 2021002548

*Adegoke Roheemah - 2021002345

Ladoke Akintola University of Technology, Ogbomosho, Nigeria.


Abstract:

The Text-Based Adventure Game project involves the development of an interactive narrative
experience where players navigate through a story by making choices. The game is implemented
using programming concepts such as conditional statements, loops, and basic game design
principles. This report outlines the project's objectives, design, implementation, and challenges
faced during the development process.

1. Introduction:

The aim of the Text-Based Adventure Game project is to create an engaging and io a nteractive
experience for players through a command-line interface. The game employs a branching narrative
structure, allowing players to make choices that influence the progression of the story.

2. Objectives:

- Implement a user-friendly command-line interface for player interaction.


- Develop a branching narrative with multiple story paths.
- Utilize conditional statements and loops for decision-making and story progression.
- Integrate basic game design principles to enhance user experience.

3. Design:

3.1 Story Structure:


The game's story is designed with multiple decision points, each leading to different outcomes.
This structure is achieved through the use of conditional statements, where player choices
determine the direction of the narrative.

3.2 User Interface:


The command-line interface provides a clear and concise platform for player interaction. Input
parsing is implemented to interpret player choices and trigger the corresponding events in the story.

3.3 Game Loop:


The game employs a loop to maintain player engagement. After each decision point, the loop
prompts the player for their next action, creating a seamless and continuous experience.

4. Implementation:

4.1 Programming Language:


The game is implemented using a programming language suitable for text-based interfaces, such as
Python. Python's simplicity and readability make it an ideal choice for this project.

4.2 Conditional Statements:


Conditional statements are utilized to evaluate player choices and direct the flow of the narrative.
For example, an 'if-else' structure determines which part of the story to unfold based on the player's
decision.

4.3 Loops:
A loop structure is implemented to ensure a repetitive and interactive experience. This loop
continuously prompts the player for input, processes their choices, and updates the game state
accordingly.

4.4 Basic Game Design:


Elements of game design, such as engaging storytelling, meaningful choices, and feedback
mechanisms, are incorporated to enhance player immersion. This includes descriptive text,
impactful consequences for decisions, and a clear indication of the current game state.

5. Challenges:

5.1 Balancing Complexity:


Ensuring a balance between complexity and simplicity in the narrative to maintain player interest
without overwhelming them with too many choices.

5.2 Error Handling:


Implementing robust error handling mechanisms to manage unexpected user inputs and maintain
the stability of the game.

5.3 Iterative Testing:


Conducting iterative testing to identify and address potential issues in the branching narrative and
game mechanics.

6. Conclusion:

The Text-Based Adventure Game project successfully combines programming concepts with game
design principles to create an interactive and engaging experience. The implementation of
conditional statements, loops, and a well-designed user interface contributes to the project's success
in delivering a captivating text-based gaming experience.

7. Future Enhancements:

Potential future enhancements may include graphics or a graphical user interface (GUI) to expand
the game's visual appeal, audio integration for a more immersive experience, and the development
of more intricate storylines with increased decision complexity.

This project report provides a comprehensive overview of the Text-Based Adventure Game, from
its objectives and design to implementation and challenges faced during development.
#Game Setup
while True:
player_name = input("Enter your name: ")
#Sub Game Loop
player_age = int(input("Enter your age: "))
if player_age <=0:
print("You are ineligible to play this game")
elif player_age <18:
print("You are ineligible to play this game")
else:
print("Would you like to continue ?, (YES/NO)")
choice = input("> ")
if choice == "YES":
print("Hi ", player_name ,", Welcome to our First Text Based Adventure Game!")
player_sum = int(input("Enter the amount you would like to deposit: "))
print("CONGRATS, Your startup Bal is", player_sum,"$")
#Main Game Loop
while True:
print("Write CONTINUE to proceed")
Proceeding_compputation = input("> ")
#Scenerio 1
print("You found yourself at a CROSSROAD")
print("Would you go LEFT or RIGHT ?")
CrossRoadchoice = input("> ")
if CrossRoadchoice == "LEFT":
print("You venture along the LEFT path and encounter a River ")
print("There is a shipwreck Ahead and Pirhanas are over the place : <><
<>< ")
print("10 passengers are on board")
print("Rope 2$ WoodLog 4$ SmallBoat 10$")
while True:

print("Write CONTINUE to proceed")


Proceeding_compputation = input("> ")
print("1. Rope - CAPACITY: 1 PASSENGERS")
print("2. WoodLog - CAPACITY: 2 PASSENGERS")
print("3. SmallBoat - CAPACITY: 5 PASSENGERS")
SPchoice = input("Select > ")
if SPchoice == "1":
print("Great choice", player_name, ", How many Ropes will
you like to purchase?")
RopeChoice = int(input("Enter the amount you would like to
purchase: "))
#Computing Expression 1
RopeAmount = RopeChoice * 2
print("CREDIT BALANCE : ", player_sum - RopeAmount,
"$")
print("CONRATS!, You successfully rescued", RopeChoice , "
passengers")
elif SPchoice == "2":
print("Great choice", player_name, ", How many WoodLogs
will you like to purchase?")
WoodChoice = int(input("Enter the amount you would like to
purchase: "))
#Computing Expression 2
WoodAmount = WoodChoice * 4
print("CREDIT BALANCE : ", player_sum - WoodAmount,
"$")
print("CONRATS!, You successfully rescued",
WoodLogChoice * 2, " passengers")
elif SPchoice == "3":
print("Great choice", player_name, ", How many SmallBoats
will you like to purchase?")
SmallBoatChoice = int(input("Enter the amount you would like
to purchase: "))
#Computing Expression 3
SmallBoatAmount = SmallBoatChoice * 10
print("CREDIT BALANCE : ", player_sum -
SmallBoatAmount, "$")
print("CONRATS!, You successfully rescued",
SmallBoatChoice * 5, " passengers")
else:
print("Invalid choice, enter 1, 2 or 3.")
print("Write CONTINUE to proceed")
Proceeding_compputation = input("> ")
#Reward Computation
if SPchoice == "1":
print("BRAVO",player_name, " the survivors has decided to
repay you 70$ ")
print("CREDIT BALANCE : ", (player_sum - RopeAmount) +
70, "$")
elif SPchoice == "2":
print("BRAVO",player_name, " the survivors has decided to
repay you 70$ ")
print("CREDIT BALANCE : ", (player_sum - WoodlogAmount)
+ 70, "$")
elif SPchoice == "3":
print("BRAVO",player_name, " the survivors has decided to
repay you 70$ ")
print("CREDIT BALANCE : ", (player_sum -
SmallBoatAmount) + 70, "$")
else:
print("Invalid choice, enter 1, 2 or 3.")
elif CrossRoadchoice == "RIGHT":
print("you venture along the RIGHT path")
print("An Ogre springs out to attack you")
print("Weapons available :(1. Guns, 2. Blades, 3. Baton)")
while True:
WeaponChoice = input("> ")
if WeaponChoice == "1":
print("GUNS : ")
print(" PISTOL (Damage-10% | Accuracy-90% |
Mobility-90%) = 30$")
print(" RIFLE (Damage-20% | Accuracy-60% |
Mobility-60%) = 40$")
print(" SHOTGUN (Damage-35% | Accuracy-60% |
Mobility-50%) = 70$")
print(" Sniper (Damage-40% | Accuracy-80% |
Mobility-70%) = 90$")
Gunchoice = input("> ")
if Gunchoice == "PISTOL":
print("How many bullets will you like to purchase: 5$/1")
PISTOL = int(input("Enter the amount you would like to
purchase: "))
print("CREDIT BALANCE: ", (player_sum - 30) -
(PISTOL * 5),"$")
elif Gunchoice == "RIFLE":
print("How many bullets will you like to purchase: 10$/1")
RIFLE = int(input("Enter the amount you would like to
purchase: "))
print("CREDIT BALANCE: ", (player_sum - 40) - (RIFLE
* 10), "$")
elif Gunchoice == "SHOTGUN":
print("How many bullets will you like to purchase: 20$/1")
SHOTGUN = int(input("Enter the amount you would like
to purchase: "))
print("CREDIT BALANCE: ", (player_sum - 70) -
(SHOTGUN * 20), "$")
elif Gunchoice == "SNIPER":
print("How many bullets will you like to purchase : 25$/1")
SNIPER = int(input("Enter the amount you would like to
purchase: "))
print("CREDIT BALANCE: ", (player_sum - 90) -
(SNIPER * 25), "$")
else:
print("Invalid choice, enter your Gunchoice.")
elif WeaponChoice == "2":
print("BLADES: ")
print(" KNIFE (Damage-10% | Accuracy-90% |
Mobility-90%) = 20$")
print(" AXE (Damage-15% | Accuracy-40% |
Mobility-30%) = 30$")
print(" SPEAR (Damage-30% | Accuracy-20% |
Mobility-40%) = 60$")
print(" SWORD (Damage-40% | Accuracy-60% |
Mobility-70%) = 80$")
print(" BOW & ARROW (Damage-50% |
Accuracy-70% | Mobility-60%) = 200$")
Bladechoice = input("> ")
if Bladechoice == "KNIFE":
print("How many knifes will you like to purchase: ")
KNIFE = int(input("Enter the amount you would like to
purchase: "))
print("CREDIT BALANCE: ", (player_sum) - (KNIFE *
20), "$")
elif Bladechoice == "AXE":
print("How many axes will you like to purchase: ")
AXE = int(input("Enter the amount you would like to
purchase: "))
print("CREDIT BALANCE: ", (player_sum) - (AXE * 30),
"$")
elif Bladechoice == "SPEAR":
print("How many spear will you like to purchase: ")
SPEAR = int(input("Enter the amount you would like to
purchase: "))
print("CREDIT BALANCE: ", (player_sum) - (SPEAR *
60), "$")
elif Bladechoice == "SWORD":
print("How many sword will you like to purchase: ")
SWORD = int(input("Enter the amount you would like to
purchase: "))
print("CREDIT BALANCE: ", (player_sum) - (SWORD *
60), "$")
elif Bladechoice == "BOW & ARROW":
print("How many bow & arrows will you like to purchase:
")
BOW & ARROW == int(input("Enter the amount you
would like to purchase: "))
print("CREDIT BALANCE: ", (player_sum) - (BOW &
ARROW * 200), "$")
else:
print("Invalid input, enter Bladechoice")
elif WeaponChoice == "3":
print("BATON: Damage-20% | Accuracy-90% | Mobility-90%)
= 20$")
BATON = int(input("Enter the amount you would like to
purchase: "))
print("CREDIT BALANCE: ", (player_sum) - (BATON * 20),
"$")
else:
print("Invalid Input, Enter 1, 2, OR 3")
#Outcome & Reward Computation
if WeaponChoice == "1":
print("Great work, You killed the ogre")
print("You earned a GEM")
elif WeaponChoice == "2":
print("Great work, You killed the ogre")
print("You earned a GEM")
elif WeaponChoice == "3":
print("You were Killed by the Orge")
else:
print("GAME OVER")
else:
print("Invalid choice, enter LEFT or RIGHT.")
elif choice == "NO":
print("OOPS!")
else:
print("Invalid choice, enter YES or NO.")

#End of Game
print("GAMEOVER")
print("Do you want to Play again, (YES/NO) ?")
end_game_choice = input("> ")
if end_game_choice.lower() !="yes":
print("Thanks for Playing!")
break
1. Setup:
- Introduce the player to the setting and their character.
- Provide some background story or context to the adventure.

2. Scenarios:
- Create various scenarios or challenges for the player to navigate through.
- Each scenario should present the player with multiple choices.

3. Choices:
- Offer the player a set of choices at each scenario.
- Choices could include actions like exploring, interacting with objects or characters, fighting
enemies, solving puzzles, etc.

4. Consequences:
- Each choice made by the player should lead to consequences, affecting the outcome of the
game.
- Consequences could include gaining or losing health, acquiring items, unlocking new paths,
or progressing the story differently.

5. Loop and Progression:


- Implement a loop to allow the player to progress through multiple scenarios.
- Provide clear feedback to the player on their progress.

6. Endings:
- Design multiple possible endings based on the player's choices throughout the game.
- Endings could range from success to failure, with varying degrees of fulfillment or
consequences.

7. User Interface:
- Develop a user-friendly interface for displaying text, choices, and outcomes.
- Ensure the interface is easy to navigate and understand.

In conclusion, the development of our text-based adventure game holds immense potential for
captivating players with its immersive storytelling and interactive gameplay. By targeting the
growing audience of adventure game enthusiasts, we aim to deliver an unforgettable gaming
experience. We are excited to embark on this journey and bring our vision to life. Thank you for
considering our proposal, and we look forward to the opportunity to create an engaging and
thrilling adventure game

You might also like