0
Best data structure ?
I have a big arena about 1M×1M And there is units like(soldier,tank,..) on it and they move to kill the Base (a game like clash of clans) What is the best data structure i can use to store this arena For sure it's not a two dimensional array because it's too big
3 ответов
+ 1
1M seems unreasonably oversized but anyway it's probably better for a lot of other reasons as well to store the position of each unit and other assets as x,y coordinates
0
Benjamin Jürgens how can i do that ?
0
Michel Ghaith i think you should try using a game engine. I don't know any for java unfortunately. Maybe unity is an option for you. It uses C# for scripting, which should be an easy transition from java