Page 1 of 1

Shadow-Casting Help

Posted: Wed Dec 04, 2013 11:17 pm
by lilfinn
I have the shell of a game that i'm ready to take to the next level and start my first "real" game. The last thing I want to implement is dynamic lighting. If you have ever seen terraria, i'm looking for a lighting engine along those lines (I will post an example picture for reference). If you have a solution for me, a tutorial, or a library it would be greatly appreciated.

Thanks,
Blake

Example lighting:
Image

.Love:

Re: Shadow-Casting Help

Posted: Wed Dec 04, 2013 11:50 pm
by markgo
viewtopic.php?f=5&t=76400

Also checkout Roguebasin and look for articles pertaining to line of sight (LOS) or field of view (FOV). Recursive shadowcasting seems to be the easiest to understand and works well so you're on the right track.

Re: Shadow-Casting Help

Posted: Thu Dec 05, 2013 11:13 am
by Germanunkol
Checkout "Moncle" as well, it deos something similar:
http://love2d.org/forums/viewtopic.php? ... it=Monocle
There's two versions atm, you'll have to read the thread to get the differences, I guess.