For context, I am using the bevy engine.

I know that you aren’t supposed to store stuff that might contain a lot of information, such as dialogue, NPCs and skills.

I already found a library that helps me store dialogue (bevy_yarnspinner), but I’ve yet to find such a library for other ressources.

So I was wondering, usually in RPGs, where and how are stats, skills, NPCs (including enemies) and maps are stored? And how does leveling up work?

  • @Astrimedes
    link
    3
    edit-2
    5 months ago

    In general you want to put things like item statistics, level up experience point thresholds, and any other “pure data” into some kind of text file or database, and then read it into the memory on load or when you need it.

    Look into exporting and importing JSON objects, and write ‘types’ in your code that are read in from JSON files. Then when the game or level loads, you read in all of the item statistics, for example.