Let's take a look at the final effect of the game at first:
Watch it on YouTube

Now let's talk about how to achieve it with Javascript.
The game is made using HT for Web, with about 100 lines of code.

Initialize the scene

First, let's do some initialization work, including initializing the 3D scene, setting the ground grid, and enabling event monitoring, etc. The main code and comments are...