Hi, i'm working on a game right now where the use of jsons is going to be necessary, so I set it up as well as the game object to manage it in game. Does the object retain the data read from ajax across layouts, or do i have to re-establish it every time i need it?
Develop games in your browser. Powerful, performant & highly capable.
Objects like Array, Dictionary, JSON are global by default. So they will maintain the data when you switch between layouts. Ideally you only need to load it once - I usually do this in the loaded layout.
Ah I see I see. That clears up my confusion, thank you very much!