# Game Logic and Organization

**URL:** <https://forum.babylonjs.com/t/game-logic-and-organization/14596>\
**Category:** Questions\
**Created:** [October 2, 2020, 6:13am UTC](https://forum.babylonjs.com/t/game-logic-and-organization/14596 "2020-10-02T06:13:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_Cri5](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/_cri5/32/13066_2.png) [@\_Cri5](https://forum.babylonjs.com/u/_Cri5)\
**Post date:** [October 2, 2020, 6:13am UTC](https://forum.babylonjs.com/t/game-logic-and-organization/14596/1 "2020-10-02T06:13:55Z")

</div>

What could be the right way to organize and load different maps. Things like storing maps, loading maps, reload map, instantiating assets, game modes and etc.

I was thinking about something like a game manager that stores and manages the game states. Also storing maps(assets) as arrays maybe?

---

<div class="post-metadata">

**Author:** ![withADoveInOneHand](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/withadoveinonehand/32/1243_2.png) [@withADoveInOneHand](https://forum.babylonjs.com/u/withADoveInOneHand)\
**Post date:** [October 2, 2020, 7:09am UTC](https://forum.babylonjs.com/t/game-logic-and-organization/14596/2 "2020-10-02T07:09:40Z")

</div>

I think you basically just store your levels as objects/arrays of all your assets and have a function that packs/unpacks the target level at runtime.

I wager there’s many strategies, love to hear if anybody has best practices wisdom. I’m leveraging holding level data in each: an s3 bucket, web storage, static precomputed data served from the app server, and in memory during runtime.
