Hey all. Looking for some general advice on a question I have.
I’m making a old school, 3D dungeon game (like Black Cyrpt, Dungeon Master, or more recently, Legend of Grimrock). The basic grid movement is sorted, and I’ve been mainly concentrating recently on getting the template GUI down. So at the moment I have an inventory working, a character sheet with multiple tabs (armour, skills, stats, etc). And I’ve just finished up some icons for where the character portraits would go. So i’ve all that working at the moment for one character.
So this is where I’m looking for advice: Multiple characters, each with their character sheets (with different tabs) and inventories.
I’ve fair idea on how I could do it, but wondering what the best way would be. Essentially, I don’t know whether to make 4 individual player objects, and have broadly the same scripts on each, or one big ‘party’ object with all the scripts on it, with each individual inventory or character sheet just spilt up into different functions in the one script.
For those unfamiliar with the type of game, it would be party based, but with a 1st person view, you can’t really control characters individually. You can equip each of them with different stuff, they have separate attacks, etc, but the party moves forward as one at all times. So from a gameplay point of view, I don’t think not having individual objects per character would be a problem.
Anyone ever done something similar to this? I’m straying towards the one big player object with separate functions/classes per character in the one mega script, because I think it will make other things easier down the line. But I’ve never done anything like these before, so would happily defer to someone else’s experience or thoughts. I also don’t know how well or poorly each of these options would work from a code efficiency point of view either. I’ve only been coding for the past half year or so.