I've been working on (in my opinion) a pretty solid rpg game idea but......I have a few issues...
I wanted to do it as a text based RPG with graphics, work out the code as best as possible, get the storyline down well, the races/classes stats etc. pretty much get all the key components of the game down to where I like them and see how things go.
JSON seemed like the perfect thing to implement into game data storage and from what i've seen, game development/storage with JSON isn't heavily documented on the net but I can't really see a reason why given some of it's capabilities and how light weight it is.
BUT...I want the game to rely on JSON heavily as far as data storage goes for the game and even help with some of the layout with the CSS & replacing tables for JSON objects.
I was wondering is there a way to pretty much use JSON for storing stuff like:
Races, Classes, & Factions:
also stuff like for races, each of their base attributes the player starts with and for classes, the stat modifiers each of them give and for factions, the difference in types of gear and even possibly quests available to you.
Character Attributes & Profile:
use JSON for holding and displaying the players stats & skills on their profile when it it visited. (wins & losses, strength, wisdom, agility, etc)
Same concept as the 'Character Attributes & Profile' idea except for Guilds.
NPCs & Questgivers:
for holding and displaying NPC characters and what they have to say & when also what quests can be given & for what level range and even their image file path. In general, the AI of the game.
actual in game objects the player can interact with or pick up or equip and their stats.
Saving your game:
holding players data in some sort of secure JSON database if that's even possible.
Player In-game Stats:
Lives, Health, mana, energy, etc.
GUI & Animation:
using JSON array's instead of tables and then placing them with CSS for stuff like the players backpack window or the players run animation while moving using CSS3.
two other issues I have is,
A. is this all even possible and if so, how it would run?
B. how I could keep the code organized?
If I do it this way their's going to be A LOT of JSON objects in one document. Could I write & save them as arrays and seperate files like Guilds.json
and than call & store them or certain parts of them as needed like calling a function or a variable using eval()?
Also, if this IS
all possible as far as making a text based browser game goes, how well could the "JSON" theory be implemented within a 3D environment like Unity?
I hope you guys can help me out with this!