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

Game Development

3444 readers
1 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
 

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
[–] Astrimedes@lemmy.world 3 points 3 months ago* (last edited 3 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.