4 ms·
20 lines of code is a lie though
by singularity2001 6y ago
20 lines of code is a lie though
- s-macke 6y agoIndeed, the Javascript code is much larger. But the description tells you. "Terrain rendering algorithm in less than 20 lines of code" So, it just means, that a clean implementation of the terrain rendering algorithm takes 20 lines. With initialization, keyboard handling, map selection, collision detection, fps display and some JavaScript optimizations it needs much more lines of code.
- MattRix 6y agoIt’s not a lie at all, since it is specifically talking about the rendering algorithm, not the entire program.