super fast lighting engine - overhead light remix

364
0
Published 2022-09-15
All credits go to @RatboyChase for the excellent lighting engine.
All I did was give the shadow clones a ghost effect. Because of that, it now looks as if the light source is hanging above the obstacles (i.e. in front of the screen; this is a top-down perspective). I also removed the mouse collision check; it is not relevant here since the light is above the obstacles.

EXPLANATION
The obstacles (the purple walls together with the bowl of cheesy puffs) are a single sprite with a transparent background. This sprite is cloned many times. The clones are made black by setting brightness as low as possible. Each clone has a different size (bigger than its original) and a different position (but always mirroring the mouse position). All these overlapping clones together, form the shadows.

In my remix, it is not too hard to recognize the individual clones. In the original project, it is impossible to tell them apart, making the effect all the more impressive.

I used a similar shadow effect a few years ago in the underground section of "The Search for Dumbledore", but made with pen rather than clones.
https://scratch.mit.edu/projects/224252447/