I want to have a minigame inside my note-taking application. (Eg: an activity with a chrome dinosaur clone.)
I have worked with libktx and libgdx before. My question is can these libraries be used to work with normal android projects and can they be used to interoperate between a normal activity and the game activity?
So in essence i want to jump from my normal activity which takes notes to an activity which will have a minigame inside ..
LibGDX can be embedded in an Android application as a
Fragmentrather than a complete activity.From the official documentation:
For more examples, see the official documentation or this StackOverflow question.
LibKTX should work seamlessly in a
Fragment, and you should be able to easily translate the examples from Java into Kotlin if you want to.