This week made experiments with lights. It need more work. But first simple version is done
I can change color of tile in light map layer of tile, to emulate light.But it wasn’t enough.
I want to light be more dynamic. For example some light sources with red danger signal that pulse in game, or turn on/off light in a room.
So i make a light object.
1)That object find near cells(for now all, in future only that can be touched by light).
2)Change brightness depends on distance(not implement for now)
3)Blend with light from other light sources. Problem place.
My first idea was to use hsv colors. But i do not find way to make blend for hsv colors. Now i use rgb additive blend. It worked good when lights white or have same colors. But in other situation it produce strange results=)
I do not know the best way to make blend for different light colors.I think i will avoid that situations in game.