An article about ray casting in 2D game engines.
Not that hard as you might have thought.
This article has been updated and moved to https://sszczep.dev/blog/ray-casting-in-2d-game-engines/.