Introduction to Kotlin in OrbitPi

Introduction to Kotlin in OrbitPi

Kotlin is being introduced to OrbitPi as a way to store states of scores. Instead of keeping it in Java Records (which are bigger and more complex), Kotlin Objects will be used.

This is the data manager class in Kotlin (the syntax issue is because I created a Java file with the same name), and here it is in Java:

Slightly bigger.

Kotlin may also be used for some jME operations, like error catching and caching,

A full Devlog will be posted later, regarding the outcome of this… experiment.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.