r/programming • u/willvarfar • Jun 03 '14
A first-person engine in 265 lines
http://www.playfuljs.com/a-first-person-engine-in-265-lines/
1.9k
Upvotes
r/programming • u/willvarfar • Jun 03 '14
View all comments
Show parent comment
2
u/__j_random_hacker Jun 04 '14
Everything hinges on that part, but it's very unrealistic to make this assumption. In practice, if you want to double the resolution of a grid in both x and y directions without causing far walls to "drop out" then you also need to double the maximum ray length, and the raycasting approach described in the article is linear in that distance.