With the development of the collision game One success! Our AE lad is also daring to try out many new schemes h5. So the following is the birth of a more perverted game. Let's take a look at the tank wars.
The process of development is very difficult but it's fun. Fixed a lot of mistakes and improved some ideas
1. The original canvas of the _this existence of the global pollution improved to avoid 99% in order to get Windowtouch attributes or 1% of the hope in three amendments
2. All recursive function Requestanimationframe function to enhance the performance of the animation smoother
3. More thorough structure of data and image separation the updated image of the object's creation object data is rendered based on the object's data
There are a lot of small details specific can refer to the source code specific in the Ctrlgame method
In short, this game JS there are some bugs and further optimization of space. Also know professional Egret engine coco2d this game engine benefits and strong but I followed the native wrote that continue to write it to enhance their
Some ideas and it's easy to use it. Expect version three to appear
Attached: source code
Native JS Canvas Collision game Development Note 2