kittykatattack / hexi

Make games the fun way!
MIT License
551 stars 83 forks source link

makeTiledWorld import .tsx tileset file #48

Closed thomasverleye closed 2 years ago

thomasverleye commented 6 years ago

Hello,

First of, awesome project, I'm taking really big shortcuts for a project I'm working on with this codebase! I'm wondering if it's possible to read a .tsx tileset file instead of having to import the whole tileset into the tiled .json export. I could use this because on the designteam I'm working with is using 1 general .tsx tileset file to create their levels.

Kind regards,

Thomas Verleye

kittykatattack commented 6 years ago

Hi Thomas!

Glad you're enjoying Hexi! I'm using it every day for my production work too (making educational games.)

I'm really sorry but reading .tsx files is not a feature. Also, it's not on my road map for future, but if someone wants to create a plugin for it, that would be awesome! The place to do it would be in this module:

https://github.com/kittykatattack/tileUtilities

icarito commented 6 years ago

While we are thinking of features, the one I miss is support for multiple tilesets. Tiled allows the use of different tiles (e.g. I might have items in one tileset and then map tiles in another tileset).

I guess Thomas meant .tmx files which is Tiled's native format. .json serves me well.

Another observation: