is it possible to embed a game that u make in sphere onto a webpage and have a visitor to the site download support for the game? u kno like a flash game...
Yeah, Sphere is JavaScript and when I heard the first time of HTML5 and all the stuff that comes with it, I was thinking about a HTMLSphere. Last week I tried to have a update/render loop running in HTML and Sphere using the same game scripts. It was working. Rectangle() was drawing a rectangle in my webpage and in sphere. The problem is that it requires the main game loop written in a specific way, which is not cool if you want to support already written sphere games. Also the MapEngine() call is a problem, because in Sphere it does not return as long the map engine runs... For performance reasons I want to use window.requestAnimationFrame(), but that stands against the way how sphere works with its FlipScreen() rendering...
Haha, yes, the map engine ^^ Were there ever a running rework if it?To be honest I do not really think the sphere map-engine is something I would port to html. I think it is not worth the effort. I would rather give radnens map editor the ability to export maps to json and create a new js based map engine, that can read those maps. it would then be usable in both environments...
The hardest part, really, about re-implementing Sphere for web usage seems to be recreating all the default map engine logic. Besides relying on a stable animation loop, it also assumes all the underlying pieces (and nothing more) are already taken care of, IIRC.