Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Construction of an RPG

$
0
0
Hey guys. I've attempted it before, but I am now going to try again with building a text-based RPG. In this thread, I will not be asking for help with coding. I am simply asking if my approach to this is right, as I don't want to start until everything is right.

Main.java
 - Main login screen, links to LoginHandler.java.
 - Links to Register.java, if account is not created.
 - If successful links to CharSelection.java

LoginHandler.java
 - Verifies login via database, sends results back to Main.java
 - Is not visible.

Register.java
 - Registers new accounts, checks against databases for doubles.

CharSelection.java
 - Displays character's on logged account.
 - Ability to create/delete characters.
 - Links to Town.java upon character selection.

CharacterHandler.java
 - Handles stats and multipliers.
 - Applies stat upgrades.
 - Handles level up's.
 - Handles equipment via EquipManager.java
 - Handles health & mana. If health = 0, the character dies, and is sent back to town.

Town.java
 - Higher ranked towns only available for higher levels
 - Displays available shops upon command (!shops (Will open Shop.java))
 - Displays taxi service upon command (!taxi Will open Taxi.java))
 - Ability to battle monsters available around the selected town (!battle (Will open Battle.java))

Shop.java
 - Displays shop properties according to Town selected (Higher ranked town's will have better equipment/potions)

Taxi.java
 - Displays towns and levels required to visit them.
 - If town selected is too high, error message stating "You cannot visit this town right now. Please acquire level n before trying again"

Battle.java
 - Handles battles.
 - If beast health = 0, +n exp added to player.
 - Random drops (Using Random(), if number is selected, item is added to inventory. Common items listed several times, rare's once).

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>