Coder Social home page Coder Social logo

quicktween's Introduction

QuickTween

简化CocosCreator中Tween的使用流程。参考了DOTWeen

更便利的创建tween

直接在相关对象的原型上polyfill了tween的创建

内置方式:

cc.tween(node).to(1, { position: new Vec(0, 3, 0)}).start();

使用QuickTween:

node.qtPosition(new Vec3(0, 3, 0), 1).start();

增加一些常用的组合Tween

例如:

qtJumpPosition

用于从一个位置跳到另一个位置

node.qtJumpPosition(new Vec3(3, 1, 0), 3, 1, 1).start();

'jump'

qtPunchScale

用于对目标施加一个力,产生来回弹的效果

node.qtPunchScale(new Vec3(1, 1, 1), 1).start();

'punch scale'

qtShakeRotation

用于对目标的旋转产生一个抖动效果

node.qtPunchScale(new Vec3(1, 1, 1), 1).start();

'shake rotation'

使用方式

将QuickTween文件夹复制到项目的任意文件夹下,就可以使用了。

quicktween's People

Contributors

gameall3d avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.