replit / kaboom

💥 JavaScript game library
https://kaboomjs.com
MIT License
2.61k stars 226 forks source link

Allow for Oak Interop support (Stringify String typed args in methods) #828

Closed SpcFORK closed 1 month ago

SpcFORK commented 4 months ago

I have added helpers for using a compiled language, Oak (Oaklang.org), into the code.

image

These allow for Oak String payloads ({__mark_oak_string: true, assign: ƒ, push: ƒ, toString: ƒ, valueOf: ƒ, …}) to be handled into strings.

In case that another compiled language that needs to convert a payload of some sort into a string, this function can be refactored to handle the other cases around the main kaboom.ts file.