Cookie clicker clone made to learn Kotlin and Android API
Download APK: Cookie Clicker
- Kotlin basics: variables, conditionals, loops, data classes, abstract classes, singletons etc. (This is my first real Kotlin app)
- Android API basics: activities, activity lifecycle, events, assets, resources, persisting data in Android, views and more.
- Moshi (new alternative to GSON).
- Handler / Looper classes so I can keep updating the view in set time intervals.
How to effectively store the state of the game. I had to store cookie count (score) and cookies per second (cps) and the amount of all of the cookie producers.
Currently I am persisting my score in shared preferences and parsed map in a json file on the internal storage of the device