25
submitted 3 months ago by Binette@lemmy.ml to c/gamedev@programming.dev

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?

you are viewing a single comment's thread
view the rest of the comments
[-] pipows@lemmy.today 1 points 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

this post was submitted on 28 Jul 2024
25 points (100.0% liked)

Game Development

2814 readers
3 users here now

Welcome to the game development community! This is a place to talk about and post anything related to the field of game development.

Community Wiki

founded 1 year ago
MODERATORS