fredsa / playn

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

Allow Android games to extend from something other than GameActivity #204

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
On Android, PlayN forces me to extend my game from GameActivity. This makes 
some things easier but many other things much harder.

For example, I would like to avoid using PlayN.graphics(). However, there is no 
way I can prevent the initialization related to GamveViewGL.

In general, since Java has single inheritance, it is nicer to allow games to 
extend from whatever they want. 

A good solution would be to leave GameActivity as a convenience class. However, 
the initialization related to open GL could be done as a static method that 
takes Activity as a parameter on AndroidGraphics or another suitable class.

Original issue reported on code.google.com by in...@trymph.com on 30 Jul 2012 at 11:49