0
\$\begingroup\$

what are The Best practies To load game data that are Stored in a mysql database?

I'm using ajax request. But The async Call is a problem because i can't sync The game level with The data load. And game does Not start because the variable is not defined. If i use sync Call, The loop wait The result And all the entities are blocked on The screen.

How Can i resolve?

\$\endgroup\$

closed as unclear what you're asking by Vaillancourt, Josh Jun 1 '16 at 22:50

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

0
\$\begingroup\$

I would say sockets, TCP will work great if you don't aim to a MMO-thing.

If you just want to use AJAX calls, you can use promises to trigger the callback (the game itself) once the data has been received.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.