Great puzzles! I liked the ambiance and the mechanic is simple and great! I believe you used raycasting for the light beam, is that right? Because if it is, I could really use some help. I tried to used in my game to create a bouncing aiming line as you did with the light (and like in Puzzle Bobble), but I couldn't figure it out. I'll be glad if you have some tips! Thanks for the game!
Viewing post in Light Them Up (GoGodot Jam 2) jam comments
Thanks Patrick! š¤ You are right, the light is indeed calculated by raycasting from mirror to mirror. But it is a really hard problem to be honest and there are still edge cases in which the beam is calculated wrong š
But you van have a look at the source code if you want. I have to warn you it is jam code, so not the cleanest ever. But it does the job for now, although Iām convinced there must be a simpler and more elegant way of calculating reflections š