Imitate Alipay-Ant Forest, water the saplings to grow, vote for your friends, cheer, help, water the saplings to gradually grow into big trees, all parameters can be configured (such as water drop value, tree type, animation, etc. ).
The template is written using the Uni-Aapp framework, its syntax is vue, and the template is a tiny program.
There are two versions of the source code (uni-app applet and WeChat native applet), which can be run directly in the corresponding development environment.
You can modify the corresponding configuration parameters and logic according to your own needs and usage scenarios, such as (water drop value, tree type, size, tree growth animation, cloud movement animation, watering animation, tree progress, player information, etc.
Every time the kettle is watered, the water drop value increases by +1.
Click on the raindrop on the tree, the water drop value + the collected rain drop value.
This plug-in is written in Uni-App and can be run directly in HBuilder X (Note: Please replace the Uni-App application ID (AppID) with your own when using it).
The plug-in style imitates Ant Forest, and all data in it are configurable (can be completely customized or obtained from the back-end API), and corresponding animations are displayed based on different data (such as user information, water drop value, etc.).
This plug-in can be used to cheer, canvass votes, support and other similar scenarios for contestants in certain competition scenarios.
The growth process of a tree is divided into three stages: small tree, medium tree and large tree.
The current default values are: small tree (water drop value below 100), medium tree (water drop value between 100 and 1000), large tree (water drop value above 1000).
The sapling will display the corresponding animation and the tree's animation, size, etc. when the water drop value changes.