alright /agdg/
I need some figuring out a basic game design thing, I need your help, specially those savvy with godot
at first my idea was to have world generalized from json files, the gdscript would them build the scene based on their type and data, like for example:
{"name":"rome_whitetown","title":"The White Town","type":1,"background":"background/rome_whitetown.jpg""icon":"icons/rome_whitetown.png""info":"The White town is the heart of Rome.""menu": ["rome_whitetown_tradesquare", "rome_whitetown_guild", "rome_whitetown_colosseum", "rome_whitetown_forum", "rome_main"]}
I even had some nifty tricks in place, like for example, everything is loaded up before hand, and the based on the name of the other node it could fetch its title and icon
the approach I've taken, though, was that they were loaded in memory as dictionaries and thus had extensive scripts with checks during runtime to make it work
not to mention that it goes through some mind bending shit for when you want to break uniformity, like custom validity checks and random events
upon thinking of reviving this project I though of taking a more direct approach, since godot is already script based
so lets say a base script for all shared functions, and then the places would be just small text script inheriting from that one with some small data for attribute,
plain text all the the same and easy to read, no biggie right?
Now I'm thinking of yet another approach, which would more in-between the both above,
data files still base json containing data, but during loading process they are formed into actual object nodes as they are in godot
thus making loading process slightly more arduous but overall the running aspect it easier to manage and read,
so they would use the script shared base as above but still be store as json
what do you guys think, which is better and which would be your approach, and of course, why?