+ 1

Android 3d game engine

I looked up in which language popular 3d games are written in and it was c/c++ if i look up how to make an android game engine with c/c++ i find that it is used with the java jni is there an other way to write c/c++ code for android games

23rd Dec 2020, 7:01 PM
Scripting_boom
Scripting_boom - avatar
2 Réponses
+ 1
Java or Kotlin are strongly encouraged over c++ for Android development. Writing c++ for Android development goes against convention and most of its official developer support so it would be incredibly difficult for you. Android apps are difficult to make in anything other than Java or Kotlin. If you're ok with an app that is far more bloated than a c++ application typically is, you can use tools that use your c++ source almost like a scripting language. Unity3D is a gaming engine that deploys Android apps in its pro version among other platforms for IOS. I say it is bloated because the apk file is huge and Unity3D implements nearly everything about the game for you. Most c++ programmers want more control over the internal behaviour of their software so it can be optimized aggressively and this isn't possible when using Unity3D. The difficulty in using c++ for Android development isn't worth it for game development. If you're really worried about performance, keep in mind that Java and Kotlin get compiled to native machine code and execute at roughly the same efficiency as any fully compiled c++ code for a Linux executable. Android applications don't run through a JVM on the phone or tablet. Also, most graphics processing is done in the GPU if you properly use OpenGL. There isn't any considerable performance concern with Java or Kotlin.
25th Dec 2020, 2:04 AM
Josh Greig
Josh Greig - avatar
+ 1
Have you checked Unreal Engine? https://docs.unrealengine.com/en-US/SharingAndReleasing/Mobile/Android/GettingStarted/index.html You can use C++ with it to develop awesome games for Android among many other platforms. They also have a visual scripting method called “Blueprints”, which is also C++ based. Hope it helps 😊
24th Dec 2020, 6:13 PM
Rukshan J. Senanayaka
Rukshan J. Senanayaka - avatar