fredsa / playn

Cross platform game library for N≥4 platforms
0 stars 1 forks source link

HtmlPlatform root element #248

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In many use cases, the html page is generated according to a couple of 
requirements. It would be flexible that the root element of PlayN is able to be 
customized such as config.rootId = "playn-x-root" or platform.register(element).

And it would be very useful when the single html page hosts multiple so-called 
games, each of which is just game alike application with more fantastic UI.

Original issue reported on code.google.com by tan...@gmail.com on 12 Feb 2014 at 9:46

GoogleCodeExporter commented 9 years ago
I pushed a patch that allows the root element id to be configured.

In order to make this work, I think your separate "games" would need to be 
totally separate GWT apps, because PlayN is not designed to support running 
more than one game due to its pervasive use of statics.

Original comment by m...@samskivert.com on 12 Feb 2014 at 6:41

GoogleCodeExporter commented 9 years ago
It works fine :) 

Just come back to say thanks.

Original comment by tan...@gmail.com on 2 Jun 2014 at 3:08