TmxParser
Posted: Sat Dec 03, 2016 1:34 am
Hi.
parsing Tiled Map Editor file (TMX)
http://www.mapeditor.org/
(Tiled v0.17.0)
I referred to this site.
https://github.com/Kadoba/Advanced-Tiled-Loader
It's minimum sample code.
And, Attachment is STI (v0.16.0.3) sample.
viewtopic.php?f=5&t=76983
(But, You need to remake sti/init.lua)
Thank you.
parsing Tiled Map Editor file (TMX)
http://www.mapeditor.org/
(Tiled v0.17.0)
I referred to this site.
https://github.com/Kadoba/Advanced-Tiled-Loader
It's minimum sample code.
Code: Select all
local TmxParser = require("lib.tmxparser") -- require
local tmxparser = TmxParser:create() -- create
local map = tmxparser:parse("XXX.tmx") -- parsing and get tmx map(table)
local node = tmxparser:getNode() -- get xml node(table)
map = tmxparser:getMap() -- get tmx map (table)
tmxparser:printNode() -- print console xml table
tmxparser:printMap() -- print console tmx table
viewtopic.php?f=5&t=76983
(But, You need to remake sti/init.lua)
Thank you.