There are many games using H5 technology development, such as the three countries come, bahamut anger, cut rope and so on. Our company also has a variety of games with H5 development, H5 development cost is low, high efficiency, convenient to do Automatic Updates, portability is good. Benefiting from H5 technology, our company's many products are easy to cross-platform.
As early as 2012, I was honored to be responsible for technical research, to transplant our game to Win8 and WP8 platform, at that time in the domestic win8 and WP8 platform is the leading. One of our games, across iOS, Android, Win8, WP8 and BlackBerry 105 mobile platforms, is surely the only thing in the country?
"Infinity Lands" wins the BlackBerry Excellence Award
It also benefited from the early launch of several games on the Win8 and WP8 platforms, helping Microsoft to enrich its WIN8&WP8 store offerings. We have established a strong relationship with Microsoft and become an important Microsoft partner in the mainland, and a few days ago, Microsoft Xbox Live Mainland was the first issue. Well, the company's WIN8 and WP8 products are my responsibility to develop ^_^
Originally this article should talk more about development technology, but two years ago I developed, there is no platform to expand. I also turn to do cocos2d-x and Unity3d development. Many of the implementation of the details have been forgotten, talk about a few points can be thought of it: PHONEGAP, encryption, update.
PhoneGap: Many teams do H5 mobile games using PHONEGAP, I do not recommend. Because this library is very large, too complex, and we only need to use a few features. So, I suggest not to use PhoneGap, according to the needs of their own projects, to achieve one on their own. PS. Note Multi-threading security.
encryption : H5 js, CSS and HTML can be directly seen, so for security must do encryption. Recommend des encryption, write your own packaging tools, all JS, CSS and HTML encryption.
update : With H5 do update is really convenient, complete burst cocos2d and Unity3d. Cocos2d JSB can also be updated, but if the C + + library has problems, it cannot be updated, and using H5, we can do only upload once version, in iOS such a strict platform, update is very useful. Write yourself a simple packaging tool, generate an update package, a file name, and a list of corresponding MD5.
In the WIN8 version of the update function, there is a small episode. Due to WIN8 security restrictions, Win8 's webview does not allow the loading of local files outside the package. In this case, the content is updated to local, but cannot be loaded. What if the update function must be done, win8 not allow to load updates to local files? For js/css/html This text content, is very simple, reads in the memory execution is possible, but the picture? H5 does not support displaying in-memory images.
I've been thinking for a long time, and the last one is: You only allow to load files on the server, so I'm going to open an HTTP server locally. Then, I implemented a simple HTTP server, and the HTTP directory pointed to the updated content. The perfect solution to this problem! The port number of the HTTP server I was set to 9527, read the "Tong Pak-Fu Point Chou-Heung" classmate smile. So, if any technical classmate analysis of our application, will be surprised to see that we occupy 9527 of this port, do not expect to use it?
Later, a technical director of Microsoft to communicate, I told them about my implementation, he laughed, "for the sake of security, we limit the loading of local files, did not expect to be easily cracked by you, or use our legitimate API." What could be more enjoyable than being a Microsoft technical expert?