In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Changes

Jump to navigation Jump to search
1,826 bytes added ,  05:17, 7 April 2010
Line 421: Line 421:     
* Background hair is always pulled from the second image file.
 
* Background hair is always pulled from the second image file.
 +
 +
 +
=== Eyebrows ===
 +
The eyebrow tile set contains left eyebrows in tiles 0 thru 23, and right eyebrows in tiles 53-30 (notice the right eyebrows are backwards. They are arranged that way to pull from the ends of the tilesets (this will be more clear when we put it all together)).
 +
 +
* The eyebrow array is called '''eyebrows[24]'''. It has 24 elements and is defined as follows:
 +
** int eyebrows[24] = {1,3,14,15,11,10,0,6,8,4,13,12,2,19,16,18,22,9,21,5,17,7,20,23};
 +
* The purpose of eyebrows is to translate the '''mii.eyebrowType''' variable into the correct right and left eyebrow tile. For example if mii.eyebrowType returns 4, we would use '''eyebrows[mii.eyebrowType]''' to draw the left eyebrow (tile 11) and '''53-eyebrows[mii.eyebrowType]''' to draw the right eyebrow (tile 42).
 +
 +
 +
=== Eyes ===
 +
The eyes tile set contains three image files (''mii_eyes1.png'', ''mii_eyes2.png'' and ''mii.eyes3.png''). The purpose of the three files it layer the eyes with a white layer for the whites of the eye, a dark layer for the eye drawing itself, and a color layer for the eye color portion.  All three tile sets use the same variable to select a tile and like the eyebrows, the tiles are drawn for both left eye and right eye.
 +
 +
* The eye array is called '''eyes[48]'''. It has 48 elements and is defined as follows:
 +
** int eyes[48] = {2,6,0,42,1,24,29,36,3,16,45,13,17,26,46,9,8,5,33,14,11,20,44,18,30,21,7,10,34,41,31,32,15,12,19,23,27,28,38,4,22,25,39,43,37,40,35,47};
 +
* The purpose of eyes is to translate the '''mii.eyeType''' variable into the correct right and left eyebrow tile. For example if mii.eyeType returns 9, we would use '''eyes[mii.eyeType]''' to draw the left eye (tile 16) and '''95-eyes[mii.eyeType]''' to draw the right eye (tile 79).
 +
* These tiles are used for all three image files to build up a full eye.
    
== Putting it all together ==
 
== Putting it all together ==
221

edits

Navigation menu