I am trying to design a game from strach with Javascript.
It's a 2D game (a kind of Zelda on old devices).
I am trying to find an efficient way to store my data because I know I will have to face some major challenges among which :
- Pathfinding
- collision
I may have more than 1 000 entities on screen and maybe even more background objects (let's shoot for the stars !)
Do you have some advices / hints / articles about an efficient way to store objects so that I can (for e.g.) retrieve only a reduced set of entities in my collision algorithm
maybe there are some design patterns to deal with those challenges ?