Page 1 of 1

Need Help, My Map wont draw!

Posted: Tue Oct 06, 2015 1:12 am
by RubyOnRails
Hey can you please help me, I'm coding a video game. The map wont draw for some reason here is all my stuff!
please help me with my problems.

Code: Select all

local AdvTiledLoader = require("AdvTiledLoader.Loader")

function love.load()
	AdvTiledLoader.path = "maps/"
	map = AdvTiledLoader.load("map.tmx")
	map:setDrawRange(0, 0, map.width * map.tileWidth, map.height * map.tileHeight)
    
    
end

function love.draw()
    map:draw()
end

function love.update(dt)
    
end 
Image

Image

Image

Image

Re: Need Help, My Map wont draw!

Posted: Tue Oct 06, 2015 7:17 am
by 0x72
looks like you use an outdated library with a newer version of love

Feb 16, 2014:
https://github.com/Kadoba/Advanced-Tile ... 083a569469

there is no drawq in 0.9.*

either:
- upgrade the lib
- replace the lib (as it's "no longer being actively developed") and use another one (ATL's readme suggests https://github.com/karai17/Simple-Tiled-Implementation ) <- choose this one if not sure
- or downgrade love ( :( )

Re: Need Help, My Map wont draw!

Posted: Tue Oct 06, 2015 10:56 am
by Karai17
As the above poster notes, ATL is no longer in development and no longer works. Your best bet is to switch over to STI for continued support.