Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How to load tiled map exported as json into corona?
Started by sheikhameen123 Apr 07 2019 10:26 PM

1 reply to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

sheikhameen123

[GLOBAL: userInfoPane.html]
sheikhameen123
  • Observer

  • 23 posts
  • Corona SDK

Lua export doesn't work as expected. How to use json export?



[TOPIC: post.html]
#2

GrahamRanson

[GLOBAL: userInfoPane.html]
GrahamRanson
  • Contributor

  • 105 posts
  • Corona SDK

Although it's been a long time since I've used Tiled, essentially the json export will give you a json representation of all the tiles/tilesheets/objects etc in your map. You'll then need to load up that json file ( json maps to lua tables perfectly ) https://docs.coronalabs.com/api/library/json/index.html  and then deal with all the elements in the map.

 

There is also ponytiled - https://github.com/ponywolf/ponytiled - which should help a lot.




[topic_controls]
[/topic_controls]