Including Custom Resources

I’m loading level data from .json files. Here’s what the asset file hierarchy looks like:

Screenshot 2024-02-10 114739

Here’s what my Custom Resources box looks like:

Screenshot 2024-02-10 114943

Everything under the images directory is used in atlases or tilesources, so they don’t need to be included as custom resources. Everything under the levels directory is loaded dynamically with sys.load_resource(), so they do need to be included as custom resources.

If I keep Custom Resources path as assets instead of assets/levels, will the image data be doubly included in the application binary?

You can test it by bundling with build reports enabled, but if I had to guess I’d say it would be doubled. Atlases and tilesources copy the image data into a separate .texturec file so the original .png’s would usually not be included in the final bundle.