The nice thing about this implementation is that the code is very clear and easy to follow. You could easily make it much shorter if that were the goal.
Re:A first-person engine in 265 lines of JS
by huskyr on Wednesday June 04, 2014 @05:07AM
(#7844664)
Exactly. I think that's wonderful about this example, it's not just 250 lines of heavily compressed code, it's readable and clean.
Re:A first-person engine in 265 lines of JS
by restlessmedia on Wednesday June 04, 2014 @05:33AM
(#7844731)
Me three. It's covered the 're-read in 6 months time' criteria. I must confess I do change from reading to scanning as soon as the heavy math kicks in.
There's a niche for a website that does a bunch of sub-500 LOC javascript examples of tiny bits of computer graphics, to give a very brief introduction and demonstration of the math, and which then chains them together for some other software.
Re:A first-person engine in 265 lines of JS
by devindotcom on Tuesday June 03, 2014 @04:37PM
(#7842568)
Yep, kkrieger is the one I remember:
https://www.scene.org/file.php?file=%2Fparties%2F2004%2Fbrea...
Also on the topic, the demo scene stuff is mind blowing, too. [0]
[0]: http://awards.scene.org/awards.php