How are stats, skills, NPCs and maps stored in RPGs? And how does leveling up work? - eviltoast

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?

  • ancap shark@lemmy.today
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    Hot take: just use code.

    Most data that you would store in some kind of encoding would be better as code. Code is fast, compact, versatile and easier to work with than a text, or even a binary encoding.

    If the problem is that the data is large, and that would slow down the initial load, you can split it in dynamic linked modules, and lazy load them as needed