2D game Terraria-like lighting

Started by
9 comments, last by StarMire 9 years, 5 months ago

This is a rather good idea, renman29. I'm going to test this right now.

As for dynamic objects, there will be. And the light from the torches do a little flickering, so I'll have to update de lighting in a fixed timestep, I think. Right now I update it every frame.

As far as the torches' flickering goes, that's not an issue.

Just store torch light baked as another layer/channel. Consider it like a special color, the special property of which is that it flickers. You can use some kind of perlin (or other) noise function to have the light flicker irregularly around screen space without ever recomputing the torches' light propagation itself.

Dynamic lighting objects are trickier. Will their numbers of limited? And how fast will they move?

This topic is closed to new replies.

Advertisement