Full threadmidzer·Ported from https://github.com/SaturninTheAlien/pk2_greta with EmscriptenMy changes in https://github.com/midzer/pk2_greta/tree/emscriptenView on HN