Raycasting in tiled worlds using the DDA algorithm. It is a very effective solution for tile-based worlds such as platformers or top-down games.
https://github.com/selimanac/defold-tile-raycast
Use Cases(AI Generated)
Ray Casting in Games
2D Top-Down Roguelikes: Games like “The Binding of Isaac” and “Enter the Gungeon” use ray casting for line-of-sight calculations, bullet trajectory.
Wolfenstein 3D and similar pseudo-3D engines: The original Wolfenstein 3D used DDA-based ray casting to create a 3D-like environment from a 2D map.
Minecraft uses a variation for block targeting and lighting calculations.
Line-of-Sight Systems
Tactical games like “XCOM” and “Into the Breach” use DDA for determining visibility between units.
Stealth games for guard vision cones and detection systems.
Procedural Generation
Dungeon crawlers like “Rogue Legacy” use it for connecting rooms and ensuring paths are traversable.
Spelunky and similar games for procedural level interconnections.
Other Applications
Tower defense games for targeting and projectile calculations.
Strategy games for unit visibility and pathing calculations.
Battle royale games for circle/zone damage calculations across grid terrain.

