News for hackers. Stuff that matters.
Re:Making Games with Kotlin by al_ on Wednesday December 11, 2019 @03:29AM (#21760616)
My goal is to make a full kotlin android/iOS/backend game with shared business logic. How fare are wew from that?
Re:Making Games with Kotlin by mmahemoff on Wednesday December 11, 2019 @03:55AM (#21760737)
Quizlet has been doing shared business logic with Kotlin - Ankush Gupta has written and talked about it https://medium.com/tech-quizlet/shared-code-at-quizlet-kotli....

We've been experimenting with this model too, as "write once, run anywhere" is very tempting for business logic, but those platforms have traditionally fallen down when it comes to UI and other native functions (e.g. alarms, sensors, etc). So far, it's proving very do-able. Non-trivial in some areas such as multi-threading, but a lot more practical than replicating the same logic across Android, iOS, and web.

Re:Making Games with Kotlin by outadoc on Wednesday December 11, 2019 @03:40AM (#21760666)
There was a talk about it at KotlinConf. https://kotlinconf.com/talks/6-dec/124273/

The individual talks' videos aren't up yet but you can probably find it here: https://youtu.be/nfb6lDnvtKQ?t=13852

Re:Making Games with Kotlin by krilly on Wednesday December 11, 2019 @03:36AM (#21760647)
Why not unity? (It's an obligatory question at this point)
Re:Making Games with Kotlin by hamoid on Wednesday December 11, 2019 @04:29AM (#21760914)
Because it's not FLOSS. At least that's my reason.
Re:Making Games with Kotlin by al_ on Wednesday December 11, 2019 @04:15AM (#21760839)
Because I absolutely love Kotlin and I feel I'm much more productive with it. I have a hard time working with script languages and feel confident on my code nowadays.

Also, Kotlin let you use tons of java libraries.

Re:Making Games with Kotlin by juskrey on Wednesday December 11, 2019 @04:19AM (#21760870)
C# is hardly a script language, also Kotlin Native is hardly a tool for gaming with its lack of real multithreading support
Re:Making Games with Kotlin by skinnyasianboi on Wednesday December 11, 2019 @07:25AM (#21761785)
I both wrote games with Unity and Kotlin. Kotlin makes me much more productive and libgdx is well more suited for 2D games. Backend in unity?