PDA

View Full Version : light in the dungeon?



Deril
January 12th, 2006, 12:00 AM
Hello,

here is next subject I dived into...

task:

1: enviroment: top-down dungeon with empty or solid block tiles.
2: there is movable character in this dungeon having light sourse..
3: all tiles is black(undiscovered) untill character actualy can see them with help of his light.. (lamp.. cvandle.. whatever..)
4: light is blocked by solid rock tiles.. and only first visible tile is shown to the user.


eny advice how to make it? :)

I have a quick demo (http://www.flashmx.projektas.lt/temp/FlashRogue001.html) of dungion engine.. but it must be fixed.. :( too damn sloooow... (I hate flash performance..)

Pasquale
January 12th, 2006, 12:38 AM
GEEZ that is really laggy (the demo) :)