Shirakumo / trial

A fully-fledged Common Lisp game engine
https://shirakumo.github.io/trial
zlib License
985 stars 47 forks source link

Squashed / corrupted sprites #87

Closed fosskers closed 2 weeks ago

fosskers commented 2 weeks ago

Hi again, I'm having some trouble loading sprites. As far as I know I've followed the Guide to the letter, exporting an animated sprite from Asesprite whose subsequent JSON looks fine, yet when I run the program I see:

https://vimeo.com/1005219262

We can see at least something of the blue of his sword swing here. Similarly, an attempt to load a sprite with only 1 frame (a lemon) looks like:

lemon

Meanwhile, here is the original.

I've done my best to debug this, but can't tell what's wrong. Have I...

The code is here: https://github.com/fosskers/save-the-farm and should run as-is provided you're on the branch from #86 . I made that PR in the first place in order to debug this. Thanks for any help you can offer.

Shinmera commented 2 weeks ago

Sprite packing seems to have broken in a regression. I'll take a look tomorrow.

fosskers commented 2 weeks ago

a-lemon

Works like a charm! Thanks for the quick fix.