UltimaXNA
UltimaXNA copied to clipboard
Implement static lighting effects
When it's dark, static lighting (like candles, streetlight, and ... windows, maybe?) should generate a lighting effect.
Three questions must be answered before this can be implemented:
- Which objects create a lighting effect? Is it an item flag?
- How can we tell which lighting effect to use for an object?
- When do lighting effects appear - at what level of darkness?
This one might require some tweaking of the sprite batch. Ought to be fun. :)
Light properties are defined in tiledata.mul. On non-static light sources, properties can be also changed by script. Colored lights are hardcoded in client as far I know. Would be nice to change this. I belive, that light effect is always visible with exception of highest global light level.
And if I remember correctly, to put light effect on item, you need to set Light Source flag in tiledata and then set LightID as Quality value.