ZLIB? The zlib of this and zip is not a thing :)
This is a game under the 99 years,
Instant light, see Diablo2 thinking, for each person, increase the Z-axis information, such as X, Y, Z 3 coordinates to calculate its brightness, can realize real light and shadow effects
From the picture, it is the most prominent place to skirt, the minimum illumination is minimized by the light below.
Below is the explanation documentation at the time:
Z buffered light and shadow demonstration
ZIP package 67k
Direction key, ESC button
This is the second demo I wrote based on Z buffered light and shadow, mainly to achieve the effect like Diablo II, which is the most basic use Z buffer.
And the previous difference is not very big.
At present, such as multi-light source, multi-color light (different from each source) can basically be implemented, but there are some bugs, so they have not taken it; how to do basically, although I originally envied it. Not the same, but it should be too big.
I am afraid that there is no time to write these days, and I will say it.
Processing the Z buffered code is written by C, simply calculates the square and the topic check table. There should be a large optimization.
In fact, there are many places that I don't think of, such as the back of the back should block a part of the light, but there is currently unable to achieve, divide it into two parts to solve it will be very resource, and such a small place is quite disadvantageous. It is good to use this stuff in actual use.
I hope to discuss with you!
Special thanks to the RLA decoded code provided by the cloud.