I’m wanting to have a level and exp system in my game which will modify stats like HP, Attack, Defense, and such. While I could use a case match system for it, I want to know if there are better ways to store each level’s data, like a spreadsheet.
Is there any particular reason you don’t want to use percentages? It would simplify everything a lot.
E.g. each level you gain +10% attack, +5% HP, etc. You don’t need any tables in this case.
If you need to precalculate each level bonus for some reason, you could store it in a JSON file, and then load it and apply at runtime.
1 Like
Use a 2D array/table for your level data. The player’s level is then the index into the table.
2 Likes
I should’ve thought of that to be honest lol. Thanks.