Manual:color.lua

From DoomRL Wiki

Revision as of 04:27, 8 December 2012 by Yaflhdztioxo (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In console mode all game objects are associated with a color. While these are automatically set on a per-object basis there is a configuration file--colors.lua--which allows you to customize them to your own preferences.

Color Definitions

Colors
Color ID Valkyrie ID Looks Like
BLACK 0 @D
BLUE 1 @b
GREEN 2 @g
CYAN 3 @c
RED 4 @r
MAGENTA 5 @v
BROWN 6 @n or @N
LIGHTGRAY 7 @l
DARKGRAY 8 @d
LIGHTBLUE 9 @B
LIGHTGREEN 10 @G
LIGHTCYAN 11 @C
LIGHTRED 12 @R
LIGHTMAGENTA 13 @V
YELLOW 14 @y or @Y
WHITE 15 @L
Colors
Color ID Looks Like Comments
MULTIBLUE 17 Missile only
MULTIYELLOW 18 Missile only
MULTIPORTAL 20 Map object only
COLOR_WATER 21 Map object only
COLOR_ACID 22 Map object only
COLOR_LAVA 23 Map object only

More information on colors can be found at Modding:Color

Customizing colors

To customize an object you will need that object's id or color_id. Once you have the id add it to the colors.lua file!

Colors = {
	--This is a cell. Cells have both a light color (the cell is visible)
	--and a dark color (the cell is out of vision).
	--For cells the proper syntax is [id]_dark = COLOR and [id]_light = COLOR
	floor_dark  = GREEN,
	floor_light = BLUE,
 
	--These are items and beings.
	--The proper syntax for non-cells is [id] = COLOR
	former = RED,
	ammo = YELLOW,
 
	--This is a lava lever. Perhaps you think you can distinguish
	-- between different lever types by color. Think again!
	lever_flood_lava = RED, --Doesn't work!
	lever = RED, --Makes ALL levers red
}
Personal tools