Comment by s-macke
9 years ago
What you look at, is the whole engine and not just the rendering part. This contains, HTML, CSS, loading and initialization of the maps, clear and flip screen code and especially input device logic. The rendering part in the JavaScript is still rather small. However, the code is optimized and therefore larger. For example the drawing of the vertical line is done manually.
Read the explanation of this algorithm and you will see how the 20 lines are meant.
No comments yet
Contribute on Hacker News ↗