Skip to content

Allow adding additional assets to the queue after loadQueue is triggered #71

@digitalbreed

Description

@digitalbreed

Is your feature request related to a problem? Please describe.
I was investigating how loading of a Tiled map (tmx) could work in Black. tmx files are XML which contains references to additional files, like tilesets (tsx) or images, and tilesets are also XML which lists images. This means that additional resources which need to be queued for loading are only known after the map file was loaded and parsed.

Describe the solution you'd like
Assets should be able to queue additional assets while loading, for example by having access to the AssetManager from which they're being loaded. Currently the AssetManager would have to be passed in manually, but queuing while loading is currently denied due to an invalid state of the AssetManager.

Additional context
Tiled is a popular 2D map editor and importing Tiled files should be supported. I'd love to hear alternative approaches to deal with nested loading of assets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions