Skip to content

Sprite Creator

Robosturm edited this page Aug 4, 2019 · 2 revisions

Since Beta Release 6 Commander Wars ships with a sprite creator for units and buildings in the console.

The tool can be accessed by pressing F1 which will open the ingame console. It only accepts png-images as input. The first argument is either a file or folder. The second argument is a one pixel heigth and whatever amount of army pixel width table image, which contains the army color pixels in your source sprite. The third argument is a one pixel heigth and as width as the army pixel table with the gray color. The gray color will be mixed with the ingame selected army color and creates the actual color of the unit or army in the game.

createSprites("test/HeavyInfantryBM.png","test/orange.png", "test/neutral.png")
createSprites("test/","orange.png", "neutral.png")

Clone this wiki locally