1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Updated Sprite compiler (markdown)

Thomas den Hollander
2015-06-01 23:32:13 +02:00
parent 01df4ee4b4
commit d54b002e4c

@@ -7,6 +7,6 @@ To ease the importing and exporting of sprites in the game, OpenRCT2 has a tool
* `-m 1`: closest. This mode will change all pixels to the closest pixel in the palette. Already converted images will be unaffected.
* `-m 2`: dithering. This mode will use Floyd-Steinberg dithering to make the image look close to the original while converting to the colour palette. Already converted images will be unaffected.
* **openrct2 sprite build `sprite file name` `image folder`** Creates a new sprite file and imports all files in the specified folder. This also accepts the modes as described in **append**. Every time the game is compiled, the images in \resources\g2\ will get added in this way automatically. It should be noted that if an image already uses the OpenRCT2 colour palette, none of the modes will change the output. Therefore, if the result of dithering is not to your liking, you can add your own custom image and still use dithering with this command for the other images.
* **openrct2 sprite build `sprite file name` `image folder`** Creates a new sprite file and imports all files in the specified folder. This also accepts the modes as described in **append**. Every time the game is compiled, the images in \resources\g2\ will get added in this way automatically. It should be noted that if an image already uses the OpenRCT2 colour palette, none of the modes will change the output. Therefore, if the result of dithering is not to your liking, you can add your own custom image and still use dithering with this command for the other images. To learn how to do dithering yourself, see [dithering images](https://github.com/IntelOrca/OpenRCT2/wiki/Dithering-Images).
* **openrct2 sprite export `sprite file name` `sprite index` `image to create`** Exports the sprite at the specified location in the sprite file to the image location.