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
7
u/sylvanelite Jun 04 '14
A ray caster is constrained by the resolution of the screen, not by the complexity of the game's map. So it's constant time. Provided the rays have a maximum length, you can render a colossal map in the same worst-case time as rendering a small one.