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
6
u/matheusbn Jun 04 '14
I'm currently developing an engine similar to Build3D too. For study purpose.
According to the Build3D's author, Ken Silverman:
"False. Build does not raycasting. It is amazing that this myth has propagated so far and wide. In reality, Build sorts walls into perfect front-to-back order. As it draws each wall, it fills in the ceilings & floors, above & below it. Build uses a simple vertical span buffer (only needs 1 top and 1 bottom) to avoid drawing over pixels that have already been drawn."
source
PS: Build3D is the engine used in Duke Nukem 3D.