The Final Choice (PyWeek 23 entry) ported to JavaScript

Now you can play in your WebGL-enabled browser here. Let me know if you encounter any bugs, thanks!

(log in to comment)


Manually ported, or is there some clever tooling involved?
Manual. I don't see that changing for me any time soon. I use several Python features that don't really have any equivalent in JavaScript. In this case pickle and numpy. Having said that, most of the game logic was pretty quick and straightforward line-for-line translation. The graphics and audio setups were mostly written from nothing, including writing all of the shaders by hand. But I didn't necessarily need to do it that way.