[Share] a previous JS game called "Battle City"

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.