Skip to content

Latest commit

 

History

History
14 lines (7 loc) · 519 Bytes

README.md

File metadata and controls

14 lines (7 loc) · 519 Bytes

grid-line-intersection

Given two points on a grid, draw a line between them, keeping track of which tiles are intersected in the process. This is useful for finding a line of sight for a player in a tile-based 2D game, for example.

Based off this tutorial:

http://playtechs.blogspot.com/2007/03/raytracing-on-grid.html

grid-line-intersection screenshot

Dependencies

  • Qt >= 5.7.0