Skip to content

Support TMX texture relative Source path #1302

Closed
@DeathPhoenix22

Description

@DeathPhoenix22

Current
The TilesetLoader is always looking for the Source texture path starting from the TMX map itself. This "forces" all textures to be placed next to the Maps & inside the levels folder. It basically consider only the Image name instead of the asset path.
New
The TilesetLoader will now take the complete path of the Source which allows us to place the resources anywhere relative to the file. For example, it's now possible to place the Tileset image file in the textures to avoid duplicating textures in both the textures folder and the levels folder. This also facilitate structure in the Levels folder (levels in different folders can share the same Source texture asset).
e.g. : <image source="../../textures/level/biome/ground.png"

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:new featureAdding a feature that isn't currently present

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions