1 //-------------------------------------------------------------------------
2 /*
3 Copyright (C) 1997, 2005 - 3D Realms Entertainment
4 
5 This file is part of Shadow Warrior version 1.2
6 
7 Shadow Warrior is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2
10 of the License, or (at your option) any later version.
11 
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 
16 See the GNU General Public License for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21 
22 Original Source: 1997 - Frank Maddin and Jim Norwood
23 Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
24 */
25 //-------------------------------------------------------------------------
26 
27 ////
28 //
29 // Misc Defines
30 //
31 ////
32 
33     #define LT_GREY         (16 * 0 + 1)
34     #define DK_GREY         (16 * 1)
35     #define LT_BROWN        (16 * 2)
36     #define DK_BROWN        (16 * 3)
37     #define LT_TAN          (16 * 4)
38     #define DK_TAN          (16 * 5)
39     #define RUST_RED        (16 * 6)
40     #define RED             (16 * 7)
41     #define YELLOW          (16 * 8)
42     #define BRIGHT_GREEN    (16 * 9)
43     #define DK_GREEN        (16 * 10)
44     #define GREEN           (16 * 11)
45     #define LT_BLUE         (16 * 12)
46     #define DK_BLUE         (16 * 13)
47     #define PURPLE          (16 * 14)
48     #define FIRE            (16 * 15)
49 
50     //
51     // Palette numbers and meanings
52     //
53 
54     #define PALETTE_DEFAULT             0
55     #define PALETTE_FOG                 1
56     // blue sword blade test
57     #define PALETTE_MENU_HIGHLIGHT      2
58     // used for the elector gore pieces
59     #define PALETTE_ELECTRO_GORE        3
60     // turns ninjas belt and headband red
61     #define PALETTE_BASIC_NINJA         4
62     // diving in lava
63     #define PALETTE_DIVE_LAVA           5
64     // turns ninjas belt and headband red
65     #define PALETTE_RED_NINJA           6
66     // used for the mother ripper - she is bigger/stronger/brown
67     #define PALETTE_BROWN_RIPPER        7
68     // turns ninjas belt and headband red
69     #define PALETTE_GREEN_NINJA         8
70     // reserved diving palette this is copied over the default palette
71     // when needed - NOTE: could move this to a normal memory buffer if palette
72     // slot is needed.
73     #define PALETTE_DIVE                9
74     #define PALETTE_SKEL_GORE           10
75     // turns ALL colors to shades of GREEN/BLUE/RED
76     #define PALETTE_GREEN_LIGHTING      11
77     #define PALETTE_BLUE_LIGHTING       13
78     #define PALETTE_RED_LIGHTING        14
79 
80     // for brown bubbling sludge
81     #define PALETTE_SLUDGE              15
82 
83 
84 
85 
86     // Player 0 uses default palette - others use these
87     // turns ninja's vests (when we get them) into different color ranges
88     #define PALETTE_PLAYER0             16
89     #define PAL_XLAT_BROWN              16
90     #define PALETTE_PLAYER1             17
91     #define PAL_XLAT_LT_GREY            17
92     #define PALETTE_PLAYER2             18
93     #define PAL_XLAT_PURPLE             18
94     #define PALETTE_PLAYER3             19
95     #define PAL_XLAT_RUST_RED           19
96     #define PALETTE_PLAYER4             20
97     #define PAL_XLAT_YELLOW             20
98     #define PALETTE_PLAYER5             21
99     #define PAL_XLAT_DK_GREEN           21
100     #define PALETTE_PLAYER6             22
101     #define PAL_XLAT_GREEN              22
102     #define PALETTE_PLAYER7             23
103     #define PAL_XLAT_LT_BLUE            23
104     #define PALETTE_PLAYER8             24
105     #define PAL_XLAT_LT_TAN             24
106     #define PALETTE_PLAYER9             25
107     #define PAL_XLAT_RED                25
108     #define PALETTE_PLAYER10            26
109     #define PAL_XLAT_DK_GREY            26
110     #define PALETTE_PLAYER11            27
111     #define PAL_XLAT_BRIGHT_GREEN       27
112     #define PALETTE_PLAYER12            28
113     #define PAL_XLAT_DK_BLUE            28
114     #define PALETTE_PLAYER13            29
115     #define PAL_XLAT_FIRE               29
116     #define PALETTE_PLAYER14            30
117     #define PALETTE_PLAYER15            31
118 
119     #define PALETTE_ILLUMINATE          32  // Used to make sprites bright green in night vision
120 
121 
122