Making a flashlight

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.
User avatar
mike
Administrator
Posts: 364
Joined: Mon Feb 04, 2008 5:24 pm

Re: Making a flashlight

Post by mike »

surtic wrote:Is that what you wanted?
My god! That demo had a lot of frightening faces hidden in the dark.
Now posting IN STEREO (where available)
surtic
Citizen
Posts: 74
Joined: Sat Jul 12, 2008 12:18 am

Re: Making a flashlight

Post by surtic »

I'm sure the word 'zombies' was mentioned... :o
User avatar
Borsty
Citizen
Posts: 66
Joined: Sun Oct 19, 2008 10:29 pm
Location: Hamburg, Germany
Contact:

Re: Making a flashlight

Post by Borsty »

Like I mentioned here: http://love2d.org/forum/viewtopic.php?f ... t=30#p2849 I've been working on some kind of shadow system. I've got to the following state today: ( Yes, that's Kudomiku's game "Wrath"
wrath_with_shadowsys.JPG
wrath_with_shadowsys.JPG (53.62 KiB) Viewed 2127 times
I'll add directional lighting so you can also set an angle, and some kind of fading to set the max view distance.
And I need to add edge-detection to circles :P

[Edit]
Here's WRATH + my shadows + surtic's shadow
Dunno why It hides all the text tho, it should be drawing before all the HUD :S
Attachments
envy_shadow.love
Updated, now it checks if shapes are in range of the shadow area... So we can skip stuff that's outside the viewable circle :P
(338.99 KiB) Downloaded 190 times
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 9 guests