View Single Post
  #8  
Old November 13th, 2011, 10:33 AM

elmokki elmokki is offline
Second Lieutenant
 
Join Date: Aug 2008
Posts: 408
Thanks: 11
Thanked 209 Times in 57 Posts
elmokki is on a distinguished road
Default Re: UnitGen 0.03 - Automatic recoloring!

0.03 adds two major features:

1. support for larger than 64*64 sprites
Base sprite determines size of a sprite. There's not much more you need to know really.

2. automatic recoloring of recolorable items
It would be tedious to make dozens of versions of all colored shields, standards, pants, shirts etc, so now the program can automatically recolor parts of a sprite. This is handled by item command #recolormask which can either take argument self (uses it's own image) or a path of another image.

The recolormask is recolored to unit's defined color (randomly generated for preview) and drawn on top of the item. All current recolormasks contain only shades of gray (red, blue and green are all equal), but this is not mandatory even if generally recommended. If you make your recolormask have more red than other colors, every single recolored item will be slightly more red etc - might be useful for rare situations.


0.03 also showcases the features by changing most of current items (Jingasa and Samurai armor are exceptions at least) that had multiple versions of coloring to automatically recolored and by adding cave drakes (128*64 base sprite) and pegasus riders (128*128 base sprite).
__________________
UnitGen - randomly generated nations with randomly generated sprites
http://forum.shrapnelgames.com/showthread.php?t=48341
Reply With Quote