Recently, I found a small game on my android phone called the cloud jump. The method is very simple. When I click the screen, the villain will jump down and stand on the cloud. Otherwise, it will be over, during the jump process, the system will receive the effect of the wind to offset the fall. So I just want to use js to try it out quickly.
I found that many setTimeout timers were used in previous js games, and the efficiency was not very good. Therefore, I used html5 to write JavaScript games and implemented them with a setInterval method. The idea is quite different from before.
The gameplay is simple. You can click the game screen and pay attention to the wind direction.
Wind direction: no layers: 0
The UI is rough... BUG... I hope you will like it... Both the source code and comments have
Complete source code>
By the way, at the chance, I found that someone used my js game to participate in the IE9 Development competition. In addition, some people will enjoy it if it passes the magic test, i'm very happy, but why can I pass those products that are not tied to IE9?