Text adventures - Task Four
Lets look at game3.py (Level 1)
- Load
game3.py
into Mu. Run it and make sure it works. In the game, what do you need to do to get out of the room?
For loops (Level 1 only)
If you need a reminder how for loops work, watch this video. If you already know you can skip this.
Adventurelib bags (Level 2, optional)
I talked too long in these videos, so skip this one if you like.
Adding items to your game (Level 1)
-
Tell me three words that are nouns and three words that are verbs. Combine them to make three sentences.
-
Following the instructions in the video, type or copy the code needed for items to your game (
game2.py
). -
Add at least three items to different rooms in your game.
Locked doors (Level 3)
-
Add at least 5 more rooms to your game.
-
Add a locked door to your game.
Bonus task (Level 3)
-
Download adventure2.zip
-
Unzip it
-
Load game4.py into Mu.
-
Tell me whether it works.
-
Kill the monster.