hex2d-rs icon indicating copy to clipboard operation
hex2d-rs copied to clipboard

Talking point: Example candidate: Bubble Shooter HTML5.

Open cheako opened this issue 4 years ago • 1 comments

T[HW]IMC: This post was written once for multiple forums. Some of its contents likely belongs in README.md, PRs welcome.

This project is a translation of https://github.com/rembound/Bubble-Shooter-HTML5 to Rust/wasm. The major goal is to leverage Rust's growing library of Maths to solve the collision problem(https://www.reddit.com/r/theydidthemath/comments/e0dpwf/request_for_two_perpendicular_lines_given_one/). There is no goal with regard to performance, don't bother trying to discuss it as you'll quickly spend whatever gains were available.

Rust is a growing body of modules(called crates) that are meant to have ready made solutions to just about every problem. Exercises such as this are my way of stressing and expanding the currently available crates. I find it more constructive to write Rust rather than JS, because the latter has limitations making ill suited for some tasks. Writing new code in JS is worth less and has no use-cases that are not already overshadowed.

https://gitlab.com/cheako/wasm-bubble-shooter/tree/9aefeefdd439aa0ac09636792e41e78ad8c34f07 https://cheako.gitlab.io/-/wasm-bubble-shooter/-/jobs/367960384/artifacts/public/index.html

WARNING: There are bugs.

cheako avatar Dec 03 '19 14:12 cheako