Modding - Adding Sprites

Many elements in Dream Engines have "sprites" (2d images), such as an icon representing an item, a building construction icon, and so on.

It is possible to add your own images in the mod, and link new elements in the content that you create to these images, or even change the appearance of existing elements.

Unless said otherwise, all images must be PNG files, and must be placed in a "Sprites" folder inside the mod's folder. The image file can then be referenced from the mod configuration files using the file name, without the ".png" extension.

For example, after adding a "tesla-cannon.png" in the Sprites folder, you may then reference this image to be used to represent a tesla cannon construction blueprint using the following entry in Constructions.json: "tesla-cannon": { "parents": [ "constructions.base.powered" ], 	"sprite": "tesla-cannon" "costs": { "funds": 20, "warpedwood": 8 }, 	"category": "defense", "object": "tesla-cannon", "build-sound": "place_turret", }, "tesla-cannon.png" will be shown in the construction menu for building the tesla cannon.