Re: miniSphere 4.8.4
Reply #1925 –
The way the Sphere v1 API is set up is actually not very browser-friendly at all. There is no concept of an event loop in Sphere 1.x so games necessarily do this:
while (true) {
/* update stuff */
/* render stuff */
FlipScreen();
}
And of course MapEngine() itself is blocking. Do anything like that on a webpage, and you lock up the browser/get your script forcibly terminated for your troubles. To my knowledge there's no function like miniSphere's Sphere.run() that you can call in a browser to pump the event loop, you need to let your script return naturally.