Giter Club home page Giter Club logo

antforest's Introduction

AntForest(蚂蚁森林)


MIT License

功能简介:

仿支付宝-蚂蚁森林,给小树浇水成长、给好友投票,加油,助力,给小树苗浇水逐渐成长到大树的过程,所有参数都可配置(如水滴值,树的类型、动画等)。

该模板是用Uni-Aapp框架进行编写的, 其语法就是vue的,模板就是微小程序。

源码共有两个版本(uni-app小程序 和 微信原生小程序),可直接在对应的开发环境中运行。

你可根据自己的需求和使用场景修改相应的配置参数和逻辑,如(水滴值,树的类型、大小、树成长动画,云走动的动画,浇水动画,树的进度,选手信息等等。

实例效果:

效果图

插件市场:

操作说明:

  • 用水壶每浇水1次,水滴值向上+1。

  • 点击树上面的雨滴,水滴值 + 收取到的雨滴值。

  • 该插件是用Uni-App写的,是一个在HBuilder X 中能直接运行的(注:您在使用时请把Uni-App应用标识(AppID)换成自己的哦)。

  • 插件样式是模仿蚂蚁森林,而其中的所有数据都是可配的(完全可以自义定 或 从后端API获取),根据不同的数据(如用户信息、水滴值等)显示对应的动效。

  • 该插件可用于为某种评比活场景的参赛人员加油、拉票、助力等类似场景。

成长规则:

  • 树的成长过程分为小树、中树、大树3个阶段。

  • 现默认值: 小树(水滴值在100以下), 中树(水滴值在100 到 1000), 大树(水滴值在1000以上)。

  • 树苗会在水滴值变化时会展示对应的动效 和 树的动效、大小等。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.