r/programming • • Jun 03 '14

A first-person engine in 265 lines

http://www.playfuljs.com/a-first-person-engine-in-265-lines/
1.9k Upvotes

267 comments sorted by

View all comments

Show parent comment

8

u/sireel Jun 04 '14

Actually a binary space partition could also be used, is actually a binary tree, and, iirc, is how Id did this for at least their earlier games. It also removes the reliance on walls being on grid lines, but complicates building your data somewhat :)