Skip to content

ton1517/TweenCC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

TweenCC

TweenCC is tween library for Cocos2d-x.

It's simple Action wrapper library.

This library is inspired by Tween24.

Usage

include

#include "tweencc.hpp"

Basic Tween

tweencc::tween(sprite, 1.0)->xy(300, 500)->rotate(30)->play();

equals to

sprite->runAction(
    Spawn::create(
        MoveTo::create(1.0, Vec2(300, 500)),
        RotateTo::create(1.0, 30),
        nullptr
    )
);

Ease

tweencc::tween(sprite, 1.0, tweencc::Ease::ExpoIn)->xy(300, 500)->rotate(30)->play();

License

This software is released under the MIT License, see LICENSE.

About

tween library for cocos2d-x

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages