this post was submitted on 28 Jul 2024
0 points (NaN% liked)
Game Development
3433 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.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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 game 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.