l3mpire / lemverse

The first-ever coworking metaverse
https://app.lemverse.com
GNU Affero General Public License v3.0
149 stars 43 forks source link

Tiled maps support #76

Open ramnes opened 2 years ago

ramnes commented 2 years ago

Tiled is a popular and very complete 2D editor that would speed up the creation of new maps.

The TMX file format is also fairly standard now, and some people have already made some maps open-source. Support for these files would help foster an open-source ecosystem around lemverse and other virtual office platforms!

In that sense, exporting existing levels made with the in-app editor to TMX would be very nice as well.

ramnes commented 2 years ago

I'm just seeing that Tiled can export maps as JSON as well, and that Phaser supports these JSON maps natively with its tilemapTiledJSON loader method!

@Donorhan That could be a much simpler alternative to what you're proposing in #80. The JSON would fit perfectly inside MongoDB, and we wouldn't reinvent the wheel. :)

Donorhan commented 2 years ago

Indeed it could be interesting, the difficulty will be to link the tilesets from the TMX to the ones we have in the database (Tiled tileset > Tileset._id). But you may be thinking of loading a map outside the DB, in which case there would be a lot of things to change