Example

Lighting works

7

Jeanmilost 2020-05-30 17:52

So I wanted to know what may happen if I apply a bit of technique used in 3D engine inside a 8 bit 2D app. I tried to use the standard algorithms commonly used to calculate dynamic directional and point lights onto a 2D surface.

Aaaaaaand the result is...

(NOTE use the directional arrows to change the light direction or position, and use A/B button to switch between lights)


was8bit 2020-05-31 04:28

Very cool :)


BlockHead 2020-05-31 07:49

With a similar procedure we can make an explosion


Jeanmilost 2020-06-01 16:12

@was8bit thank you 🙂

@Blockhead to create an explosion I think that a particle system is more appropriate to do the job. If you’re interested about how to do that, I wrote a small explosion effect on the final boss of my arkanoid game (You can see it by tweaking the code to go to the level 33 directly and low the boss’s life if you want 🙂). But it’s true that the lighting effect may be combined with the particles to achieve a more immersive effect.


Log in to reply.