fragworks / frag

A cross-platform 2D|3D game framework for the Nim programming language
http://fragworks.io
MIT License
214 stars 15 forks source link

Support for tiled maps #33

Open zacharycarter opened 7 years ago

zacharycarter commented 7 years ago

Support for tiled maps would be nice.

Should support loading http://www.mapeditor.org/ maps.

AjBreidenbach commented 7 years ago

Hey, I think I'd maybe like to work on that. Just to be clear, it's this format, right? http://doc.mapeditor.org/reference/tmx-map-format/

Would you like it to be implemented through the load proc that returns a TiledMap in tiled_map.nim?

Also might you want to refactor the Asset type from a case object to using inheritance? And maybe we could move tile related types into tiled_map.nim.