Mapa mental
Text Based Adventure Game
Contenido del mapa
Text Based Adventure Game
Prescribed Criteria
- Choices
- At least two choices for each input (Example: Left | Middle | Right).
- Variables
- At least 10 different variables; all variables must be different from each other.
- WHILE loop
- Use a WHILE loop to control gameplay; continue until player wins (5 correct) or loses.
- Storyline Variables
- Use variables that fit and match the storyline; track progress, score, choices, etc.
- Choices
Coding Constructs
- Variables
- level, score, door_correct, choice, attempts, game_over, player_name
- IF STATEMENT
- IF statement (check choice); IF ELSE (correct → next level, else → game over).
- IF ELSE STATEMENT
- If correct right arrow next level: Else right arrow game over.
- WHILE LOOP
- WHILE loop (while game_over == False); INPUT() function to get player choice.
- INPUT FUNCTION
- Get player input for door choice.
- Variables
Algorithm Constructs
- Selection (IF / ELSE)
- Check if player choice is correct. If correct right arrow continue: If wrong right arrow game over.
- Iteration (WHILE)
- Loop until player wins (level = 5) or loses; keeps the game running.
- Sequence
- Steps executed in order: Show story, ask question, check answer, update progress.
- Assignment
- Assign values to variables (Example: level = level + 1).
- Selection (IF / ELSE)
Ideas for story
- The Escape: The player is an "adventurer" attempting to escape a 10-room dungeon.
- Room Challenges: Includes sneaking past a sleeping guard, navigating smoky paths, choosing books in a library, and crossing a broken bridge.
Self Determined Criteria
- Create a criterion that links to the user problem developed in the User Persona Table
- Health system Start with 100 HP; a wrong move (the "danger_move") results in a 20 HP deduction.
- Items & Inventory: The player can collect a "lit_torch", "dungeon_map", "leather_boots", and a "skeleton_key" based on their specific choices in different rooms.
- ASCII images
- Create a criterion that links to the user problem developed in the User Persona Table
Existing Text Based Adventure Game
- Variables (Data Storage):Player State: Tracks health (integer), room number (counter), and lives. Inventory Tracks if the player has lit torch, dungeon map, or skeleton_key.Stage Data: A list of dictionaries containing the q (question), opt (options), and bad (fail message) for all 10 levels.
- Algorithm Constructs: Sequence: The game flows linearly from room number 1 to 10.Selection (IF/ELSE): Used to check if the user's move matches the danger move. If it does, health is deducted; otherwise, items are awarded. Iteration (WHILE): The while is playing: loop keeps the game running until health <= 0 or the player clears all 10 rooms.
Información
- Descripción
- Mapa Mental sobre Text Based Adventure Game, creado por Justin Lee el 22/04/2026.
- Creado por
- Justin Lee
- Visitas
- 2
- Valoración