WeChat applet demo
An experimental WeChat applet, a small game similar to flappy-bird made with canvas.
Contains some basic functions: avoiding obstacles, scoring, rankings, etc. The back-end project has also been uploaded. In the java directory, it is a very simple SpringMVC project.
See the game prototype here.
screenshot
Instructions for use
Just git clone
it and import it using WeChat developer tools.
When importing, it is best to fill in the appid. The reasons are explained below.
Things to note
- The mini program is currently in public beta. Individuals can apply on the public platform, but it cannot be certified and the final program cannot be released. But for demo, it is enough to have an appid and be able to preview it on your mobile phone.
- If the appid is not filled in, the mini program cannot be previewed on the mobile phone and can only be used in the developer tools.
- The mini program requires that the back-end interfaces are all https (which must be configured on the public platform in advance). It is too troublesome for individuals to obtain https certificates. There are two ways to get around it: if you don’t fill in the appid, there will be no https restrictions, but you won’t be able to preview on your phone; or use a proxy to proxy all requests for
https://xxx
to http://localhost:8080
. My approach is to use the SSL Proxy and Map Remote functions of Charles to realize the proxy for https requests. - I try to use ES6 writing method, but WeChat’s support for ES6 is not perfect yet.