Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Intro to Programming II Project 2, Lab Reports of Object Oriented Programming

Project 2 Plan and Description on how the program will work

Typology: Lab Reports

2024/2025

Uploaded on 04/24/2025

elina-76
elina-76 🇺🇸

1 document

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Overview:
The game is an adventure-style maze where the player navigates through a series of rooms,
each with its own challenges. The player’s goal is to reach the final room, defeat the final
boss, and claim the diamond reward. Along the way, the player will encounter setbacks,
such as enemies, and will need to pick up and use items to progress.
Game Flow:
1. Initial Setup:
Rooms:
- The game consists of five interconnected rooms. Each room has a name, a description,
and a set of directions that lead to other rooms.
- Some rooms have enemies or obstacles, and others contain valuable items.
Player:
-The player starts in the first room, which is relatively simple and free of complex obstacles.
-The player has a name, an inventory (which can hold items), and a current room they are
in.
Items:
-Some rooms will contain items the player can collect. Items might include tools, keys,
weapons, or healing potions. These items are necessary for progressing through the maze
and dealing with certain challenges (e.g., a key to open a door, a sword to defeat an
enemy).
Neighbors:
- Each room is connected to other rooms by exits in different directions (e.g., north, south,
east, west). The player can move between rooms by specifying the direction they want to
travel.
- If a room doesn’t have an exit in the specified direction, the game will notify the player and
not allow the move.
2. Gameplay Loop:
Once the game starts, the player will continuously interact with the game world by making
choices on what to do next. These choices will include moving between rooms, picking up
and using items, and engaging in combat with enemies.
pf3
pf4

Partial preview of the text

Download Intro to Programming II Project 2 and more Lab Reports Object Oriented Programming in PDF only on Docsity!

Overview: The game is an adventure-style maze where the player navigates through a series of rooms, each with its own challenges. The player’s goal is to reach the final room, defeat the final boss, and claim the diamond reward. Along the way, the player will encounter setbacks, such as enemies, and will need to pick up and use items to progress. Game Flow:

1. Initial Setup: Rooms:

  • The game consists of five interconnected rooms. Each room has a name, a description, and a set of directions that lead to other rooms.
  • Some rooms have enemies or obstacles, and others contain valuable items.
    • Player:
  • The player starts in the first room, which is relatively simple and free of complex obstacles.
  • The player has a name, an inventory (which can hold items), and a current room they are in.
    • Items:
  • Some rooms will contain items the player can collect. Items might include tools, keys, weapons, or healing potions. These items are necessary for progressing through the maze and dealing with certain challenges (e.g., a key to open a door, a sword to defeat an enemy).
    • Neighbors:
  • Each room is connected to other rooms by exits in different directions (e.g., north, south, east, west). The player can move between rooms by specifying the direction they want to travel.
  • If a room doesn’t have an exit in the specified direction, the game will notify the player and not allow the move. 2. Gameplay Loop: Once the game starts, the player will continuously interact with the game world by making choices on what to do next. These choices will include moving between rooms, picking up and using items, and engaging in combat with enemies.

Main Actions the Player Can Take:

  1. Move: The player can move in any direction that is available in the current room. If the room has no exit in that direction, the game will inform the player that the move is not possible.
  2. Pick up Item: The player can collect items they find in the rooms. Each room may contain one or more items. Once picked up, the item is added to the player’s inventory.
  3. Use Item: The player can use items from their inventory. Some items might be needed to solve puzzles or defeat enemies. For example, a torch might be used to light up a dark room, or a sword could be used to fight a monster.
  4. Drop Item: If the player is carrying too many items or needs to make space for something new, they can drop items. Dropped items will be returned to the room, allowing other players or NPCs to interact with them. 3. Room Descriptions and Navigation: Each room in the game has:
  • A name : This helps identify the room (e.g., "Snake Room", "Troll Room").
  • A description : This gives the player context about what they are experiencing in the room (e.g., "You are in a dark, damp room filled with venomous snakes.").
  • Exits : Directions in which the player can move (e.g., north, south, east, west).
  • Items : Objects in the room that the player can interact with, either by picking them up or using them. As the player moves between rooms, the description of the new room will be displayed, and the available exits (directions) will be shown. If there are any obstacles or challenges in the room (such as an enemy or a puzzle), these will also be described. 4. Combat with Enemies: Some rooms contain enemies that the player must defeat to proceed. Combat works as follows:
  • Encounter: When the player enters a room with an enemy, they will be prompted to take action.
  • The player can either fight or try to avoid the enemy (depending on the game mechanics).
  • If the player is defeated in combat or fails to solve a puzzle, they might lose some or all of their items and have to restart from a checkpoint or the beginning of the maze.
  • The game may allow the player to quit at any time by selecting the "quit" option.