A first-person engine in 265 lines of JS
11–20 of 99 posts
Wow.
Re: A first-person engine in 265 lines of JS
#12I'm really surprised that it's 265 and not 256... I mean, there's got to be a good reason not to make it a round number, right?
I'm mind blown anyways...
Re: A first-person engine in 265 lines of JS
#13this is incredible. I remember doing something in C in openGL with triple the line count and not nearly as impressive results during a bachelor computer graphics class. This would have been a much more interesting lab.
Thanks for the great work, i can't wait to play around with this!
Re: A first-person engine in 265 lines of JS
#14I'm really surprised that it's 265 and not 256... I mean, there's got to be a good reason not to make it a round number, right? I'm mind blown anyways...
Was shooting for 256 but went over to implement touch events ;)
Re: A first-person engine in 265 lines of JS
#15Re: A first-person engine in 265 lines of JS
#16Raycasting brings back memories! I remember poring through raycasting techniques to make my Wolf and Doom clones as a teenager. When I was almost done I demoed this for a group of friends at our school's computer club and boy were they were impressed up until the point the clipping algorithm failed and objects stopped disappearing when they fell out of the players field of view. Was teased for months after that. ... .
Re: A first-person engine in 265 lines of JS
#17Great work. I had a huge amount of fun converting your last article (terrain renderer in a tiny number of JS) to WebGL and that was only fun because of your clean, easy to understand code. Thanks for sharing.
--Callum
Re: A first-person engine in 265 lines of JS
#18Heh, reminds me of kkrieger - a first person shooter in 100KB for a scene demo.
https://www.scene.org/file.php?file=%2Fparties%2F2004%2Fbrea...
Re: A first-person engine in 265 lines of JS
#19As someone with no experience in computer graphics it's always insane to see demos like this. Especially using just around 250 lines of javascript. Really impressive. Also on the topic, the demo scene stuff is mind blowing, too. [0] [0]: http://awards.scene.org/awards.php
Yep, kkrieger is the one I remember:
https://www.scene.org/file.php?file=%2Fparties%2F2004%2Fbrea...
Re: A first-person engine in 265 lines of JS
#20It runs really slow for me, like 1 FPS. Firefox 29 on Linux.