| 1 | This is a simple guide to making sprites that will fit in the style of C-Dogs. Consistency is the most important thing; it doesn't matter how good an individual sprite looks, if it looks different from the rest it will stick out and make the whole thing look bad! |
| 2 | |
| 3 | ## Summary |
| 4 | |
| 5 |  |
| 6 |  |
| 7 |  |
| 8 |  |
| 9 |  |
| 10 | |
| 11 | C-Dogs sprites are: |
| 12 | |
| 13 | - Pixel art |
| 14 | - Somewhat limited palette |
| 15 | - Lit from the top-left, with a secondary light from the bottom-left |
| 16 | - Some objects, like pickups, cast a 1px full black shadow along its bottom-right |
| 17 | |
| 18 | ### Colours |
| 19 | |
| 20 | Try to use the limited palette that original C-Dogs uses. Not all current sprites are like this (https://github.com/cxong/cdogs-sdl/issues/388). |
| 21 | |
| 22 |  |
| 23 | |
| 24 | If you use GIMP, you can also import this palette using |
| 25 | - Windows > Palettes |
| 26 | - Right click the list > Import Palette... > find palette.png |
| 27 | - Open an image you want to palettise |
| 28 | - Image > Mode > Indexed... > Use custom palette > select the imported C-Dogs palette |
| 29 | |
| 30 | ### Lighting |
| 31 | |
| 32 | The primary light is from the top-left. This means that: |
| 33 | |
| 34 | - Top and left edges are brightest |
| 35 | - The top surface is brighter than the front surface |
| 36 | |
| 37 | Take these examples: |
| 38 | |
| 39 |  |
| 40 |  |
| 41 | |
| 42 | There are up to 7 shades used for the various surfaces and edges. Here they are in an ASCII diagram, from brightest (1) to darkest (7): |
| 43 | |
| 44 | +---+---------+---+ |
| 45 | | 1 | 2 | 3 | |
| 46 | +---+---------+---+ |
| 47 | | | | | |
| 48 | | 2 | 3 | 4 | |
| 49 | | | | | |
| 50 | +---+---------+---+ |
| 51 | | 3 | 4 | 5 | |
| 52 | +---+---------+---+ |
| 53 | | | | | |
| 54 | | 4 | 5 | 6 | |
| 55 | | | | | |
| 56 | +---+---------+---+ |
| 57 | | 5 | 6 | 7 | |
| 58 | +---+---------+---+ |
| 59 | |
| 60 | For round objects in particular, there is a secondary light from the bottom-left. This is just to make the object look nice, and accentuate the roundness. |
| 61 | |
| 62 |  |
| 63 |  |
| 64 | |
| 65 | ### Shadows |
| 66 | |
| 67 | For tall objects and pickups, there's a drop shadow to the bottom-right, 1px thick (unless the object is taller), pure black. |
| 68 | |
| 69 |  |
| 70 |  |
| 71 |  |