GameToolBox in Rust, loosely based on the JavaScript version (see jsgtb repo)