I’m looking to make a Tower Defense on Android for a university class final project. For this, I will need to use a Path-Finding algorithm (A*, D*, D*-lite, etc.). Path-finding tends to be time-consuming, and I want this to work on 2.3.3 era phones. Also, one of the requirements for the project is I need to use OpenGL. That means more time-consumption.
So I’m thinking… Native Code for the path-finding. I’m really a C/C++ dev anyway. And it would NOT be my first multiple code-language or multiple-architecture project (embedded firmware development makes me cry, but it also makes me money; I spend a lot of time crying.)
I’m looking at a blog post on JNI here: http://www.integratingstuff.com/2010/12/12/calling-native-c-code-through-jni-in-android-applications/ and it seems straight-forward enough.
Anyone have input on their JNI experiences?
BTW, first post, glad to be here, etc., etc.
-DeanMSands3