quinton-ashley / p5play

JavaScript game engine that uses q5.js/p5.js for graphics and Box2D for physics.
https://p5play.org
GNU Affero General Public License v3.0
667 stars 184 forks source link

`sprite.image` should just store a p5.Image #322

Closed quinton-ashley closed 6 months ago

quinton-ashley commented 6 months ago

Setting sprite.image currently create a single frame animation. I never really liked this behavior and honestly kind of forgot about it.

Recently I went to change the offset of a sprite's image and typed sprite.image.offset.y = 4 and of course that didn't work, but it should!

There'd be no real backwards compatibility break by doing this so I will do so in the next minor update.

quinton-ashley commented 6 months ago

implemented in v3.22.0