Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are to design a basic dungeon exploration puzzle game like Zelda, Diablo, or any game where the player explores rooms, fights monsters, and finds

image text in transcribed

You are to design a basic dungeon exploration puzzle game like Zelda, Diablo, or any game where the player explores rooms, fights monsters, and finds keys & treasure. The game consists of a room that is populated by: . The player (a moveable character, with a name, skill level, health, points tally, and inventory of found items) .5 Monsters (moveable characters, with a name, skill level, and health) 3 treasure chests (non-moveable, with a name and points value) 1 key to the exit door (non-moveable) 2 doors(one that has been entered through, the other locked which the player can exit) The basic game mechanics are .The player will enter the room through one door. They must move about the roonm until they find the key. At this time they can then go to the exit and leave the room. The room is dark so they cannot see where things are in the room. over. If they win, they earn 1 skill point. inventory . .If they move onto a square that holds a monster they will fight. If they lose, the game is .If they move on to a square that holds a piece of treasure, that gets added to their If they move on to the square with the key, it gets added to their inventory for use later. The dungeon is represented by a 2-dimensional array, 20 x 20 in size. Each spot in the array can hold either a piece of the wall, a door, the player, a monster, treasure, a key, or nothing In the following questions describe your approach to designing a solution to this game problem. Clearly state any assumptions you make. You ARE NOT expected to code the game 1. Given the scenario above, provide an overview of how you wl structure an object- oriented design. Write a brief overview in plain English of your approach to designing a solution along with a diagram if appropriate. Describe how you might use inheritance and polymorphism. 110 marks] 2. Describe the classes and/or structs your C++game wll have. For each class: [15 marks] a. Describe the purpose of the class in one or two lines. Also indicate if it is a base class or inherits from another class b. Describe the data members each class and/or struct may have. Indicate the data type you will use to represent each data member and the visibility of each Describe the member functions that each class would have. Indicate the visibility of each function and write one line that indicates what the job of the function is. Also indicate if the function has any special characteristics (for example, is static, virtual, a friend, etc.) c. 3. Describe the functionality your main function will have. Also list and describe any other functions your game will use that are not part of a class detailed above. 5 marksl You are to design a basic dungeon exploration puzzle game like Zelda, Diablo, or any game where the player explores rooms, fights monsters, and finds keys & treasure. The game consists of a room that is populated by: . The player (a moveable character, with a name, skill level, health, points tally, and inventory of found items) .5 Monsters (moveable characters, with a name, skill level, and health) 3 treasure chests (non-moveable, with a name and points value) 1 key to the exit door (non-moveable) 2 doors(one that has been entered through, the other locked which the player can exit) The basic game mechanics are .The player will enter the room through one door. They must move about the roonm until they find the key. At this time they can then go to the exit and leave the room. The room is dark so they cannot see where things are in the room. over. If they win, they earn 1 skill point. inventory . .If they move onto a square that holds a monster they will fight. If they lose, the game is .If they move on to a square that holds a piece of treasure, that gets added to their If they move on to the square with the key, it gets added to their inventory for use later. The dungeon is represented by a 2-dimensional array, 20 x 20 in size. Each spot in the array can hold either a piece of the wall, a door, the player, a monster, treasure, a key, or nothing In the following questions describe your approach to designing a solution to this game problem. Clearly state any assumptions you make. You ARE NOT expected to code the game 1. Given the scenario above, provide an overview of how you wl structure an object- oriented design. Write a brief overview in plain English of your approach to designing a solution along with a diagram if appropriate. Describe how you might use inheritance and polymorphism. 110 marks] 2. Describe the classes and/or structs your C++game wll have. For each class: [15 marks] a. Describe the purpose of the class in one or two lines. Also indicate if it is a base class or inherits from another class b. Describe the data members each class and/or struct may have. Indicate the data type you will use to represent each data member and the visibility of each Describe the member functions that each class would have. Indicate the visibility of each function and write one line that indicates what the job of the function is. Also indicate if the function has any special characteristics (for example, is static, virtual, a friend, etc.) c. 3. Describe the functionality your main function will have. Also list and describe any other functions your game will use that are not part of a class detailed above. 5 marksl

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions