Skip to content

Noofbiz/tmx

Folders and files

NameName
Last commit message
Last commit date
Sep 12, 2020
Sep 2, 2018
Sep 2, 2018
Sep 28, 2018
Aug 16, 2019
Oct 1, 2018
Sep 3, 2018
Aug 16, 2019
Aug 16, 2019
Sep 28, 2018
Sep 12, 2020
Sep 2, 2018
Sep 26, 2018
Sep 12, 2020
Sep 2, 2018
Aug 16, 2019
Sep 26, 2018
Sep 2, 2018

Repository files navigation

tmx

A library for parsing TMX files

To use:

f, err := os.Open("test1.tmx")
defer f.Close()
if err != nil {
  fmt.Println(err)
  return
}
m, err := tmx.Parse(f)
if err != nil {
  fmt.Println(err)
  return
}
// Do stuff with your tmx map...

If your tmx resources are in another folder, or are somewhere other than where the binary is called, you can set it by setting TMXURL to the right path. Doing this will allow you to use external tilesets and templates for the map.