Packer
Written in C using raylib for rendering, made in a few days from the theme "Shapes" for OLC CodeJam 2025.
The algorithm can handle both convex and concave polygons, but if your inner shape is a concave polygon (e.g. a star) it will be drawn slightly wrong because of how DrawTriangleFan works, and making a triangulated mesh out of arbitrary points isn't a problem I had time to solve in a jam.
Sounds generated from sfxr.me
Source available at https://github.com/cyprus327/Packer






Leave a comment
Log in with itch.io to leave a comment.