This tutorial walks you through implementing a 2D scrolling game in JavaScript.
Tunnel excavation involves lots of boring mathematics.