I created a re-implementation of GameMaker: Studio...
# feed
m
I created a re-implementation of GameMaker: Studio's runner (YoYo Runner) in Kotlin, targeting Undertale v1.08. Essentially it is like a emulator, but for GameMaker games that are compiled to bytecode. If you interpret the original bytecode and implement all the necessary functions that the game needs, then you have the game running on your own runner! It has a Kotlin/JVM backend (LWJGL and OpenGL) and a Kotlin/Wasm backend (WebGL2). Even though I have already used Kotlin/JS quite a bit before, this was my first time using Kotlin/Wasm! It took quite a bit to wrap my head around some of the quirks of working in Wasm-land (
@JsPlainObject
doesn't work for Wasm projects so you need to
unsafeJso
,
ArrayBuffer
is a buffer on the JS-land and calling
.toByteArray()
on it is sloooow, that if you want to call Kotlin/Wasm from Kotlin/JS, you need to essentially pretend that Kotlin/Wasm is a "external JS library" by duplicating your signatures in Kotlin/Wasm and in Kotlin/JS, so on and so forth) While there are already other projects like this, and heck, even LLMs nowadays can create something like this nowadays, for this project I wanted to be more "hands on" so I could actually understand the intricate implementation details that go into it, especially for the VM/interpreter. github.com/MrPowerGamerBR/Starfait