Tidal
Tidal copied to clipboard
Error when running example: attempt to call method 'bind' (a nil value)
I'm attempting to play with Tidal since it appears that the Advanced Tiled Loader was never updated for the current release of the LOVE framework.
However, when I run the example main.lua file in the master branch I get the following error:
src/TileLayer.lua:242: attempt to call method 'bind' (a nill value)
The specific line it's triggering on is in
main.lua: 120: in function 'draw'
Relevant code for a simplified example that triggers the same stack trace:
function love.load()
tidal = require 'Tidal'
map = tidal.load('maps/tilemap.tmx')
x,y = 0,0
end
function love.update(dt)
if map then
map:update(dt)
end
end
function love.draw()
-- error occurs on the next line.
map:draw(x,y)
end
Since this is also happening in the example I assume I'm not doing something wrong, but ...
Running the current version of LOVE on Windows.
I'm currently not working on this project. It previously worked on LOVE 0.9.2 so I'll gladly accept a pull request for LOVE 0.10.0 compatibility.
Ran into same issue. Barely understand the source but made few changes to get it working. https://gist.github.com/godwhoa/1173f5a374cf324ad1a7be408be4d0af