Hi!
When I clear the image attached to a sprite, I need to explicitly mark it as dirty or else the display won't update properly.
s:getImage():clear(playdate.graphics.kColorWhite)
s:markDirty()
This does not occur if I immediately draw something to the image. I assume this is because the drawWhatever
call correctly flags the image as dirty so gets it redrawn, while as clear()
does not. Since this is probably not intended and just an oversight in :clear()
, I figured I'd file a bug.
Relatedly, I noticed the SDK documentation for playdate.graphics.sprite.getAlwaysRedraw() was just copy pasted from setAlwaysRedraw
.
Thanks!