What's everyone working on this week (11/2019)?

New week, new Rust! What are you folks up to?

Learning Rocket and sketching out a so-called "better link-sharing community". https://github.com/notriddle/more-interesting

Working on a relative pointer library that will allow safe movable self-referential types.

https://crates.io/crates/rel-ptr

Making game character health bars. The rushed implementation shows the concept:

Proper implementation would be something like this
  • Generate gradient texture
  • Generate texture with different colours per pixel (plus padding pixels)
  • Generate sprite sheet with 1 pixel sprites
  • Entity for bar background
  • Entity for actual hp
  • (Optional) Entity for outline (visual polish)
  • Transform using scaling to alter the "actual hp" length (because texture and sprite sheet are immutable after loading)
  • Attach to character entity using Parent component

Likely going to push that into Amethyst when it's done.