function love.load()
local f = love.graphics.newFont(12)
cake = love.graphics.newImage("cake.jpg")
love.graphics.setFont(f)
love.graphics.setColor(0,0,0,255)
love.graphics.setBackgroundColor(0,0,0)
end
function love.update(dt)
love.graphics.draw(cake , p.x, p.y)
end
im trying to draw a jpg.
but its just black..
help please.