Sunday 18 April 2010

Lighting Enhancements

Something I'd like to introduce in future releases of Kharne (mainly inspired by the visual sexiness of Brogue) is independent light sources. Fortunately Delphi implements the Win2k+ AlphaBlend WinAPI call which would make implementation quite easy (he says confidently).

1 comment:

Pender said...

Thanks -- very flattering! Brogue does everything it does with lighting just by adding up each RGB light component for a cell and then multiplying each with the pigment color of the cell. I guess it would require more ninjitsu if I were dealing with full-color tiles instead of a single-color unicode characters, given the need for speed when manipulating graphics. Is that what the special API is for?