Today, when I changed my online storage password, I found something long ago: the Javascript version of the tank war. In the summer of, it took many nights to make the game, the crazy time of the JS game. However, the emergence of many browsers led to a significant reduction in game compatibility and eventually gave up updates.
Even though HTML5 is so red and red today, to be compatible with mainstream browsers, I still cannot escape IE. In this case, it is not as compatible with JS Applications created by Div + CSS :)
I also sent it before, but at that time, because the source code could not be found, it was changed back from the compressed JS, resulting in code confusion. The size previously made is very small. Today, I doubled the image size and increased the number of checks at night to 35 in the original version.
(Direction key: asdw shot: KL Burst: Io OK: enter [the first time you can access the selection ])
(Source link: http://goo.gl/uex0x)
Previously, we used jsmin to compress the code and change it to the current Google closure compilation. Therefore, you can use advanced_optimizations to compress the Framework Structure and some modules. If there is any bug, leave a message.
The project contains about 4000 lines of code, including a webplay game library. The basic methods and concepts are used, and the overall process is not complex. For beginner OOP ideas or basic game concepts, refer! Share it with you as a 2012 New Year gift ~
Source: http://files.cnblogs.com/index-html/BattleCity.rar
Demo