Shadow-Casting Help

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
lilfinn
Prole
Posts: 10
Joined: Thu Jul 18, 2013 5:58 am

Shadow-Casting Help

Post 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:
Attachments
[WIP].love
(142.69 KiB) Downloaded 172 times
User avatar
markgo
Party member
Posts: 190
Joined: Sat Jan 05, 2013 12:21 am
Location: USA

Re: Shadow-Casting Help

Post 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.
Germanunkol
Party member
Posts: 712
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

Re: Shadow-Casting Help

Post 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.
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 3 guests