Just in case anyone was thinking of making any spooky halloween games, here's a shadow-casting example for you.
What makes it a little unusual is that your obstacles can be any shape & size, and it's also really easy to use (instructions included).
Enjoy
Think there's any way to make this engine compatible with Flash? The String Tokenizer object isn't accessible for SWF files, if my version happens to be the most current one.
But Great Caesar's Ghost - there's so much potential in this engine of yours, man!
Apparently not - I did remake the example using a different string parsing extension specifically because someone wanted it to be Flash-compatible, it seems that won't help...
This was what Looki (creator of the Surface extension) had to say:
"...I'm afraid it won't work in Flash because Surface's Flash port is pretty barebones. Also, there is some kind of bug with graphical extensions in Flash that makes them leave the screen as soon as you start scrolling (I'm not the only developer who has noticed this)... Unfortunately I don't have that much free time to fix stuff like this right now."
It's a shame this isn't compatible with flash.
I am glad he remade the overlay object though.
I guess if you wanted to make something similar that worked in flash you could do it with actives that cover the viewing area, and make a boxxy sorta raycasting system similar to this game by Fifth: