Yeah, I don't say it's the best possible simulation. It could be a lot better. The point was to demonstrate the usage of the light() function, mostly.
FencerDevLog
1.2.7 (2026-09-29): Added diamond_fire (scene and shader). Added screen_shake (scene and shader).
You are welcome!
1.2.6 (2026-09-11): Added glass_wall (scene and shader). Added square_glass (scene and shader).
1.2.5 (2026-09-02): Added spiral_galaxy (scene and shader). Added refraction_tunnel (scene and shader).
1.2.4 (2026-08-15): Added animated_star (scene and shader). Added cave_tunnel (scene and shader).
For example, because Line2D runs on the CPU, while a shader runs on the GPU (much faster). But of course, many effects can be achieved in different ways. I just happen to prefer shaders.
Good plan! 😎
1.2.3 (2026-07-23): Added seismograph (scene and shader). Added lava (scene and shader).
1.2.1 (2026-07-08): Added one_line_warp (scene and shader). Added flag (scene and shader).
1.2 (2026-06-19): Updated to Godot 4.7. Added sponge_wipe (scene and shader). Added stormy_nebula (scene and shader).
Good luck. 😎