I am trying to both render a sprite and graphics simultaneously, but when the sprites are rendered — graphics disappears.
Here is the code:
function myGameSetUp()
gfx.drawRoundRect(10, 10, 30, 50, 5)
-- if I comment below out, rect is shown again
local ySprite = gfx.sprite.new( yLetterImage )
ySprite:moveTo( 200, 120 )
ySprite:setScale( 4 )
ySprite:add()
end
function playdate.update()
gfx.sprite.update()
playdate.timer.updateTimers()
end
It is unclear from API reference, whether I should store graphics somewhere and then run an update on it.