Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Build a pretend adventure game with JavaFX Create a 2 d Array / ArrayList of Rooms, about 1 0 x 1 0 or large, at
Build a pretend adventure game with JavaFX Create a d ArrayArrayList of Rooms, about x or large, at the edges, or if a room is blocked, don't let them travel to it with the navigation buttons. Create a class from Room that stores it's location, whether it is blocked or not, and the NPC for that room, how much gold there is to find. Player Character class Hit Points start with Strength rolls of a sided die Dexterity rolls of a sided die Intelligence rolls of a sided die total gold In a room, there is a in chance of encountering a NPC to fightrun away from. Or if there is no NPC or after you kill it you can search the room for gold or sleep. Non Player Characters monsters Hit Points randomly use the same number for the stats below Strength x Dexterity x Intelligence x Searching the room, 'roll' a sided die, and if we roll a value our intelligence, we find a the gold in the room you pick some random amount in the code Fight 'roll' a sided die, if we roll monster dexterity, we hit. They take our strength damage if hit reduces NPC hit points by that value after we attack, if the monster is alive has hit points it can attack us same rules, but in reverse minimum damage Run away the monster gets to make attack as we run away if it "sees" us roll a sided die, if it rolls it's intelligence it saw us and gets to attack. go to the previous room, or random direction, or let them pick Sleep, if we sleep, we regain all of our hit points, but there is a chance a NPC finds us while sleeping and gets to attack us add a new NPC to the room Game runs forever, or until the player dies.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started