Mindmap
Item 2
Inhalt der Mindmap
Item 2
Existing text based Adventure games
- Hitchhiker's guide to the galaxy
- The 1984 video game The Hitchhiker's Guide to the Galaxy is an interactive fiction text adventure.
- It is famous for deadlocks. This means you could do something at the very start that makes you die at the very end
- Simple game design makes games that are similar easy to recreate.
- The 1984 video game The Hitchhiker's Guide to the Galaxy is an interactive fiction text adventure.
- Hitchhiker's guide to the galaxy
Ideas for story
- Traveller trying to escape a mansion while treasure hunting
- Needs to find the garden to escape
- The garden is locked and only a magical key can unlock it
Algorithm constructs
- Modularising
- def clear_screen():
- Modularising (or modularisation) in technology is the process of breaking down a large, complex computer program or system
- def clear_screen():
- Iteration
- while is_active: show_status(current_room, inventory, rooms) user_input = input("> ")
- Iteration in technology is the process of repeating a sequence of instructions, steps, or processes until a specific condition is met.
- while is_active: show_status(current_room, inventory, rooms) user_input = input("> ")
- Selection and condition
- if command == "go": current_room = handle_movement(argument, current_room, rooms, inventory)
- A condition is a test that evaluates to true or false, while selection is the act of choosing which path to follow based on that result.
- if command == "go": current_room = handle_movement(argument, current_room, rooms, inventory)
- Assignment
- current_room = "Green Room"
- An assignment in technology refers to the process of setting or resetting a value, resource, role, or task to a specific destination
- current_room = "Green Room"
- Sequence
- clear_screen() time.sleep(0.5) ("[ SYSTEM: RUN SCRIPT = TRUE ]") ("[ LOADING: Digitech Assessment.EXE... ]")
- Sequence in technology is the consecutive execution of instructions, data elements, or processes in a predetermined, step-by-step order.
- clear_screen() time.sleep(0.5) ("[ SYSTEM: RUN SCRIPT = TRUE ]") ("[ LOADING: Digitech Assessment.EXE... ]")
- Modularising
Prescribed criteria
- Your story must have at least 10 different variables in total
- Find key as an obtainable item
- A monster room where the player dies
- Find key as an obtainable item
- Find potion as an obtainable item
- 5 rooms with multiple exits.
- You must have at least two choices for each input (IE. Yes | No, Left | Right, Buy | Sell)
- Be able to go multiple directions during different rooms eg. West, East, South, North
- Be able to obtain items such as the key and the potion
- You must use a WHILE loop
- while True: show_status(current_room, inventory, rooms)
- You must use variables that match your storyline
- Getting key, getting potion, needed to beat the game
- Your story must have at least 10 different variables in total
Self - determined criteria
- Make a separate ending to the game where a wizard appears
- When reached the end of the game without all the obtainables, the room will prevent you from beating the game
- There is two ending you can get, die by monster or get the treasure.
- This ending happens when you enchant the key needed to beat the game
- Make a separate ending to the game where a wizard appears
Coding constructs
- IF statements
- An "if statement" is a code structure that runs specific instructions only when a condition is true.
- if not user_input: print("Please enter a command.") continue
- An "if statement" is a code structure that runs specific instructions only when a condition is true.
- FOR Loops
- A "for loop" is a code structure used to repeat a block of code a specific number of times.
- if argument in rooms[current_room]: current_room = rooms[current_room][argument] else: print("The static noise is too thick. You can't go that way!")
- A "for loop" is a code structure used to repeat a block of code a specific number of times.
- IF statements
Informationen
- Beschreibung
- Mindmap am Item 2, erstellt von Charlie . am 14/05/2026.
- Erstellt von
- Charlie .
- Aufrufe
- 1
- Bewertung