Text Based Adventure

 

This is the code that is used within the text based adventure. This was the general plan within the code: 



Start Room: Player Spawns here nothing special happens 

Room 1: Has a trap. If you fall asleep or take medication you end the game. If you call for help you die as the monster murders, you for being too loud. If you search the are then you move onto Room 2 with a key. 

If you try to escape, then you move to room 5 

Room 2: Has a puzzle when you get 3 questions if you answer all the correctly you can unlock the door. 

Room 3: Provides you with a Sword and Shield to protect yourself on the next stage 

Room 4: Has multiple monsters of 3 small and 1 big zombie. If you target the big zombie first, you take more damage. If you attack the small ones first, you can eliminate them with one hit. When you eliminate all the monsters you get the pin code for room 5. 

Room 5: Needs a pin code to open if guessed wrong 3 times you will be killed. When you go there you must solve a riddle to continue. 

Room 6: You have 5 small minions to kill where they drop a hint to pass room 8 

Room 7: Provides you with 3 items. Milk / Cranberry Juice / Coke. 

Room 8: You must drink one of your drinks if you drink the milk you die as your allergic. If you drink the coke, you will die as you haven't eaten any food and it kills your stomach. If you drink cranberry juice your vision improves where you see the hidden bookshelf and pull the book to reveal room 9 

Room 9: You receive a phone to call the police to then let you escape. 


In room 6, will add so the minions have different amounts of health and can become a combat cycle. Furthermore, I have had an error where if you press yes for the minion it will die and there was no alternate outcomes.









Comments

Popular Posts