love.graphics.draw not drawing anything.
Posted: Sun Dec 06, 2015 4:37 pm
'ello love2d forums.
I'm using HUMP's gamestate module, and calling love.graphics.draw from a gamestate's :draw function dosen't work.
Basically, the image dosen't render.
maptest.png is 640x640, and I've tried using other images but they don't work either.
Any suggestions?
I'm using HUMP's gamestate module, and calling love.graphics.draw from a gamestate's :draw function dosen't work.
Code: Select all
tiles = {}
player = { x = 10, y = 10, speed = 15 }
maptest = love.graphics.newImage("images/maptest.png")
function tiles:draw()
love.graphics.draw(maptest, 1, 1)
end
return tiles
maptest.png is 640x640, and I've tried using other images but they don't work either.
Any suggestions?