Question

I am looking to create an android based game. I am planning for this to eventually be on the OUYA. I know that the console isn't out yet so it is hard to say what would work and what wouldn't but we do know it is android based and java will work.

So I am writing my game in java. I am using OpenGL ES. I'd also like it to work on desktops too. I am assuming that players will either have a controller or a keyboard and mouse (touch MIGHT work as well, but tweaking is needed). I know android itself won't provide this out of the box, but java does have some libraries that handle controllers.

In this train of thought I suppose I am creating a plain java application using OpenGL ES and would like to run it on android. Is there an easy way to package a plain java application up so that it would work on android as well? How should I structure my application to optimize code reuse?

Was it helpful?

Solution

i think the best thing to do would be to use the libGdx library .

even though it's a bit hard since the library isn't much high level as Andengine , libGdx allows you to run your app on both desktop AND android , and you use Java for development on this library !

OTHER TIPS

If you want to port your application to more than just 1 platform, consider programming your engine and your game in C and/or C++.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top