1 decade ago by icydee
Most of the examples I have seen have been stand-alone games that run in the browser, I have not seen any that communicate state with a server.
What is the best practice for this? (I am familar with AJAX calls etc. that's not the problem)
I mean, I don't think I should be making the call in the main event loop, it's just too time expensive.
So, I presume I need some code that is outside of the event loop, the event loop communicates to this level through the DOM? A worked example would help here if anyone knows?
icydee
What is the best practice for this? (I am familar with AJAX calls etc. that's not the problem)
I mean, I don't think I should be making the call in the main event loop, it's just too time expensive.
So, I presume I need some code that is outside of the event loop, the event loop communicates to this level through the DOM? A worked example would help here if anyone knows?
icydee