Get GPS position with web or android target? #1133
-
Hi, I'm developing a mobile game that need GPS positioning. Is it possible to use Cordova with KorGE, and do I have to use JSEval function or anything else? Or better solution : how can I implement android or iOS specific code to get GPS position in a KorGE project ? Thanks for your great and simple to use game engine :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Actually I found a way to integrate KorGE with Android. Giving up on a multiplatform solution, I can simply develop an android application including KorGE by copying repository dependencies 👍 In
then in
then create a main activity that refers to Korge main :
suspend fun main() = Korge { // this: Stage ->
|
Beta Was this translation helpful? Give feedback.
-
Actually, if you configure KorGE with AndroidDirect, you can just have the android |
Beta Was this translation helpful? Give feedback.
Actually I found a way to integrate KorGE with Android. Giving up on a multiplatform solution, I can simply develop an android application including KorGE by copying repository dependencies 👍
In
settings.gradle
, add korge dependency :then in
build.gradle
, add korge dependencies :