Tiled Project
In Tiled it is possible to define classes on tiles. These classes can have properties. This way you can change the properties of many tiles at once.
These classes are only available in Tiled projects and not in single maps. The classes with their properties are then stored in a Tiled project file (which is in JSON format). Grid Engine allows to provide such a Tiled project file. This is necessary if you want to use Tiled classes. The Tiled config file can be provided in the Grid Engine config. The simplest way to provide it is to use Phasers LoaderPlugin:
javascript
function preload() {
// ...
this.load.json(
"some-tiled-project",
"path-to/some-tiled-project.tiled-project"
);
}
javascript
function create() {
// ...
this.gridEngine.create(tilemap, {
// ...
tiledProject: this.cache.json.get("some-tiled-project"),
});
}