Page 1 of 2

Dynamic lighting for caves/maps

Posted: Fri Jul 26, 2013 5:14 pm
by TheFSM
I read somewhere that the lighting of tiles in the maps is not controlled by different images. This gave me the idea about perhaps having dark maps where you can carry a torch around in your offhand otherwise it's pitch black like a couple of caves near BWM.

My suggestion would go something like this:
A torch item is held in the offhand and lasts a specific number of rounds (e.g. 10 rounds outside of battle). Torches can be equipped via the quick slots.
Some monsters are especially good at fighting in the dark (their attack chance / damage increase)
Your own block chance decreases in the dark.
Lighting decreases in a radius around you when you have a torch equipped.
Some potions / foods can also be used to see in the dark? others have impaired vision as a side effect? e.g. Cheep alcohol, 20% chance of rendering you temporarily blind.
A risk of "using the wrong potion" if it's pitch black?

Re: Dynamic lighting for caves/maps

Posted: Fri Jul 26, 2013 10:52 pm
by Tomcat
The lighting idea has been brought up before, and I like the idea. The older discussions (e.g. search for ”line of sight”) happened before the tile-darkening method was available, so I think now is a good time to renew the conversation.

Re: Dynamic lighting for caves/maps

Posted: Fri Jul 26, 2013 11:22 pm
by Sarumar
Tomcat wrote:The lighting idea has been brought up before, and I like the idea. The older discussions (e.g. search for ”line of sight”) happened before the tile-darkening method was available, so I think now is a good time to renew the conversation.
Yes indeed, it is nice that some of the "old ideas" are suggested again and again and again ... by the newbies of the forum. It tells to us that those ideas are wanded ones ;)

Im fan of the idea of torch... and the monsters of night :twisted:

Re: Dynamic lighting for caves/maps

Posted: Sat Jul 27, 2013 4:01 am
by Pyrizzle
I think the addition of Torches and other light sources would be a great addition to the game.

Re: Dynamic lighting for caves/maps

Posted: Sat Jul 27, 2013 6:20 pm
by Thystonius
Pyrizzle wrote:I think the addition of Torches and other light sources would be a great addition to the game.
+1 and also +1 to monsters appearing at day or at night only, makes more sense for undead :-)

Re: Dynamic lighting for caves/maps

Posted: Sun Aug 11, 2013 5:57 pm
by nyktos
im stunned that none of the other devs have "spilled the beans" yet...

Oskar coded a light filter a few versions back & we just haven't gotten around to doing anything with it yet.

right now, we can make the entire map appear brighter or darker...

something like - you walk into the snake cave & it's a few shades darker than it used to be
(because you're in a cave)

or mabe - in the icy snow areas... the area can appear extremely bright
(because of the sun reflecting off the white)

the first steps, obviously, will be baby steps...
but hey - patience is the name of the game here.

:shock:

oops - LEAK!!!

:lol: :lol: :lol:

Re: Dynamic lighting for caves/maps

Posted: Sun Aug 11, 2013 10:53 pm
by Tomcat
nyktos wrote: im stunned that none of the other devs have "spilled the beans" yet...

Oskar coded a light filter a few versions back & we just haven't gotten around to doing anything with it yet.

right now, we can make the entire map appear brighter or darker...

something like - you walk into the snake cave & it's a few shades darker than it used to be
(because you're in a cave)

or mabe - in the icy snow areas... the area can appear extremely bright
(because of the sun reflecting off the white)

the first steps, obviously, will be baby steps...
but hey - patience is the name of the game here.

:shock:

oops - LEAK!!!

:lol: :lol: :lol:
Isn't that what is used in the dragon cave to dim it? Is that a command added to the tmx file?

Re: Dynamic lighting for caves/maps

Posted: Sun Aug 11, 2013 11:07 pm
by Antison
I'm still hoping and praying that Oskar changes his mind and introduces day, night cycles. This dynamic light would work outstandingly well in this implementation.

Re: Dynamic lighting for caves/maps

Posted: Tue Aug 13, 2013 1:56 am
by red hatter
Static light from a static torch could be implemented with semi-transparent black/dark tiles, that make an oval of several tiles width and height. Objects in the light of the torch and lack of shading will limit the use of tiles, unless one makes a lot of custom tiles for each object depending on their postions relative to the light of the torch. Maybe only four shade-for-objects tiles, for four directions, will cover several objects with acceptable shading. Shadows on the player will also be off.

Re: Dynamic lighting for caves/maps

Posted: Tue Aug 13, 2013 2:53 pm
by sorrow
I would like to see day and night in that game as well. I think it would.be cool to see an NPC walking around lighting torches in every town