I'm using playdate sdk on windows, programming in lua, and when I try to display a sprite the whole screen goes white. Anyone know what I'm doing wrong? Thank you so much for the help. Here's my code:
local gfx <const> = playdate.graphics
class("game").extends()
local function image_Init()
Image_dice1 = gfx.image.new("images/dice-six-faces-one")
img_d1 = gfx.sprite.new(image_dice1)
img_d1:moveTo(0, 0)
img_d1:add()
end
function game:init()
image_Init()
end
function game:draw()
gfx.sprite.update()
end