Answer To: Microsoft Word - ITECH XXXXXXXXXXAssignment-2.docx ITECH7201 Software Engineering: Analysis and...
Pritam answered on Jun 01 2021
MazeGame?Presentation (1).pptx
Console-Based RPG Engine in JAVA Programming Language
Overall Characteristics of the RPG Engine
Any RPG running on this engine is to be a single player game
The game is played from the first person perspective
At each turn, the user types commands at a text console
The user then receives information back from the game
The commands allow a user to interact with their virtual world
Interaction is through doing tasks such as:
1) moving in any particular direction, 2) picking up a weapon,
3) talking to other characters, 4) engaging enemies in combat
Map/Maze Navigation in RPG
Map data is hardcoded into the code for the game
Also, a starting location is specified for the player
Each location in the maze can be exited in one of 10 possible directions:
north, south, east, west, northeast, northwest, southeast, southwest,
up or down.
A player may move from one location to another using any valid exit
Some of the exits may be 'locked', in which case the player will need to find items to unlock the exit before proceeding.
Each location contains the following attributes:
exits, items, a description, any non-player characters (NPC)
The Role of Items in the RPG
During the gameplay, the player can pick up and use various items
Items are used to perform various tasks such as:
1) unlocking doors,
2) restoring life points,
3) solving certain problems,
4) to buy things (such as weapons or armour)
Items have the following attributes:
a value (gp), a weight (lb), a description
Characters in the RPG
Each character in the RPG is designed to have the following attributes: items holding, items wearing, name, items carrying, life points, armour class, strength, agility
The player is also a character, and has the same attributes, but is able to control his attributes through his actions during the game.
Non-player characters (NPCs) have the attributes of characters plus a couple of additional attributes:
hostile to player (yes/no), conversation
Weapons and Armours in the RPG
Each character can be equipped with different weapons
At any point of time, a player may only be armed with a single weapon, and it costs a turn to change weapons
Similarly, each character can be wearing armour
Armour gives the player or NPC a certain degree of protection from attack
Players may wear armor plus carry a shield
Some locations on the map are earmarked as blacksmith’s forges, where armour and weapons can be bought or sold
If an item is bought, the player pays the listed value of the weapon or armour
If an item is sold, then the player receives only 80% of the listed value
Building Parties with Groups of Characters
As the game progresses, some NPCs (who are not hostile to the player) may join the player’s quest
Thus, the player typically controls a party containing the following attributes:
the player, current location, any NPCs who have joined the player’s quest
NPCs can also be grouped into a party containing the following attributes: current location, list of NPCs in the party, moveable
If the player’s party encounters a hostile NPC (or a group of hostile NPCs), they will engage in combat.
A player’s party can choose to attack or flee
If a player’s party flees, they have to flee through a random exit.
Rules of Combat in the RPG
Each character in the location where the combat is happening takes turns to attack
The player character starts the turn by attacking a single hostile character
After the player’s turn, each NPC in the room (with 1 or more life points) is randomly selected and takes a turn to attack a randomly selected hostile character
Whenever one character attacks another, multiple dice rolls are simulated in order to decide the final outcome of this attack
In order to score a hit that deals damage on a attack roll, the character must roll the target’s Armor Class (AC) or better
If a hit is registered, a damage roll is performed to determine the extent of damage
Life points represent how much damage a character can take before dying
If the damage leaves the victim with less than 1 life points, the victim is considered dead
Class Diagram for RPG
final41195copy-4-ajfdnisd.docx
The matter of discussion in this assignment is Java Programming Language. The developers have developed a programming language that is known as Role...