SheetSmith Rust Library/CLI banner

SheetSmith Rust Library/CLI

2 devlogs
8h 22m 10s

A sprite sheet packer written in Rust. It takes a directory of images and packs them into a single sheet. Will be able to create meta files for Unity and allow you to compress your sprites! I’m sorry there’s no web demo but what can i do really 🥲

This project uses AI

GitHub Copilot Code Completions and some allocation sorting by Claude!

Demo Repository

Loading README...

Lazyllama

Hey again! I got pretty carried away with this project. I was just gonna make it to get the side-quest but then realized It’s something I actually would use, and now I’ve tried to make it as easy as possible to continue development.

There’s a lib crate now that handles the algorithm stuff and then a CLI cargo project that uses that crate and gives you an amazing way to interact with it with a very very pleasing help menu that gives you all the info you’d need and a CLI that actually tells you whats up when something goes to shite and not just “something went wrong”.

You can now input your own size exactly including padding although I do want to make it possible to exclude padding if you don’t want to calculate that yourself, this was necessary when making the project banner where the sheet wasn’t a perfect 1:1 square and rather a 7:2 rectangle. Came out perfect just like I wanted.

The sprites now sort alphabetically from the input directory, see the “/example” directory for a clear example of that. Made the README look a bit more professional (no AI i promise you) and added some guidance and stuff like that to make it more appealing and explanatory.

I think thats pretty much the most important stuff I did in this change, will ship now for the optimization sidequest so that I can focus on the rust sidequest! Never used rust in my life but coming from C# it feels pretty familliar, very very typesafe though, almost a tad much sometimes but rather that than no types am i right.

That was all from me! Any ideas or thoughts please leave them down below in the comment field, wouldn’t mind a star either 🙂

0
Lazyllama

I have to complete the optimization sidequest to be able to buy the 9950X3D, so I made something actually useful while also learning rust.

I never work with sprite sheets cause they usually are annoying and suck when your in unity, I’m gonna try to make them suck less. For today I got the base down, most time spent reading boring docs but that’s how you learn. I now have something in place that I mostly understand but I’m very clearly not all the way there yet.

It seems I got ahold of some really good dependencies for once, and PLEASE leave a comment if I’m doing something stupid cause this is not what I usually do.
For next time I’ll try to check off two of the things on my todo-list that will actually let me use this for my game, Fallen Scout (check that out btw).

Attachment
0