[Switch] Introduction to WeChat Mini Game Development

Technical introduction

WeChat Mini Game is a game library API added on the basis of WeChat Mini Program. Mini games can only run in the mini program environment, so mini games are neither native games nor completely equivalent to HTML5 games. But in fact, the mini game is aimed at HTML5 game developers. In order to make the HTML5 game low-cost porting, the mini game reuses HTML5 technologies derived from browsers such as WebGL and JavaScript as much as possible. It can be said that mini games are built with HTML5 technology and have native experience in WeChat game products.

Development Considerations

1. The WeChat mini-game is not a pure H5 environment. It can be understood as a customized and modified browser that binds extended functions, rendering, and storage with JS scripts. Therefore, the mini-game actually runs in the Runtime environment, while the debugging during development The environment is mainly web browsers, and their memory and performance limitations are different, so it is necessary to run on the mobile phone as soon as possible, and try to expose the problem; 
2. WeChat mini-games only support the JavaScript language, of course, TypeScript and CoffeeScript that can be compiled into JS can also be used as development language usage;

Design Considerations

For planners or operators, there are also the following things to pay attention to: 
1. To log in to the WeChat portal for mini games, they still need to be reviewed or represented by Tencent, otherwise they can only communicate through social media; 
2. If the original game is 1:1 ported to the mini game , and the gameplay and system are not changed at all, the operation effect will be very poor; 
3. The entrance of mini games on WeChat is very deep, at least four or five times, and the largest part of the traffic is not from the entrance of the mini game list, but from social communication. , so you must spend time on the design of social communication; 
4. The WeChat friend list is not currently open, but the function of inviting friends to battle is open to all;

 

you may be interested in

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325253159&siteId=291194637
Recommended