3 ms·
I know that a killer feature for Kotlin is that you can use the same code to compile to JS, JVM and Native. Is it actually feasible in practice? Can I make a ga
by skocznymroczny 7y ago
I know that a killer feature for Kotlin is that you can use the same code to compile to JS, JVM and Native. Is it actually feasible in practice? Can I make a game that will compile to JS, JVM and Native all with the same code? I assume the core logic would be shared and I'd have to implement platform-specific routines for things like drawing and input, but would this actually work?
- davewritescode 7y agoOnly if all the libraries you use aren't JVM specific. In this case, the developer is using wrapper for a Java library so I doubt it's possible. There's no reason the wrapper couldn't be enhanced to use the Java library on the JVM and something else on native but it would probably be a lot of work.