A
A
Artem2018-11-23 20:07:01
Game development
Artem, 2018-11-23 20:07:01

How to store item data when creating a game?

I'm interested in your opinion on how you would advise storing item data. I'm creating a game in game maker 2, if anyone is interested, and ran into a problem. I have a bunch of items, such as boards, garbage, mushrooms, nuts, etc., all of this has more than one parameter (sprite, quantity, name, etc.) they need to be stored somehow, at the beginning I thought to store it in a two-dimensional array, but then I thought, some kind of nonsense, the engine can work with external files, such as: binary files, ini files, text and like json.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2018-11-23
@xmoonlight

Table with fields - file.
Table index - add. file.
Those. 2 files per table.
Links between fields of tables - one more file.
PS: If you already have sqlite, then of course, it's easier to do everything there!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question