What would be the best / efficient way to populate a large 2d array? I'd like to create an array of around 50-100 'monsters' with various stats like Hit Points, Speed, Attack, Defence, something like this:
Orc 10 5 4 3
Goblin 7 8 3 3
Skeleton 12 3 5 3
etc.... At the moment I'm doing something like this:
but wondered if there's a better way?Nickydude2013-02-15 23:44:34
I suspect you can do this by loading a JSON file into array (which can be a local txt imported into the files folder in your project). But I haven't done/tried this, atm I just do the same as you as my arrays are small enough.