quil

plexus 2022-03-21T10:50:20.782309Z

you might find some useful stuff in here, especially if you're starting from pixel art images / spritesheets https://github.com/lambdaisland/cljbox2d/blob/main/src/lambdaisland/quil_extras.clj

plexus 2022-03-21T10:50:39.485949Z

there's code in there to scale images without smoothing, and to slice up spritesheets

Vinicius Vieira Tozzi 2022-03-30T21:01:23.604299Z

wow this is pretty cool! thanks, does it make sense to add cljbox2d as a dependency to my little game even if I don’t plan on using any physics simulation? Just for the quil-extras there. this is very useful on any type of game.

plexus 2022-03-31T03:46:46.987529Z

You'd be pulling in jbox2d but maybe that's not a big issue for you. Or just copy the namespace to your own project.

plexus 2022-03-31T03:48:42.367069Z

Maybe you also find this useful, code to split sprite sheets back into individual images https://github.com/lambdaisland/puck/blob/main/src/lambdaisland/puck/sprite_splitter.clj

plexus 2022-03-31T03:50:05.859129Z

A lot of sprite sheets you find don't come with the necessary coordinate information of what's where on the sheet. I used this to unpack them, select the ones I need, and then repack with existing tools. If have to look around to see what I used for that though