Astrimedes

joined 1 year ago
[โ€“] Astrimedes@lemmy.world 5 points 2 months ago* (last edited 2 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.

[โ€“] Astrimedes@lemmy.world 2 points 4 months ago (1 children)

Nice job! The presentation is very readable despite the inherently cluttered playspace of a TD game