cocos2dx 上下翻牌

前端之家收集整理的这篇文章主要介绍了cocos2dx 上下翻牌前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
/** Creates a OrbitCamera action with radius,delta-radius,z,deltaZ,x,deltaX. * * @param t Duration in seconds. * @param radius The start radius. * @param deltaRadius The delta radius. * @param angleZ The start angle in Z. * @param deltaAngleZ The delta angle in Z. * @param angleX The start angle in X. * @param deltaAngleX The delta angle in X. * @return An OrbitCamera. */
@H_403_20@static OrbitCamera* create(@H_403_20@float t,@H_403_20@float radius,@H_403_20@float deltaRadius,@H_403_20@float angleZ,@H_403_20@float deltaAngleZ,@H_403_20@float angleX,@H_403_20@float deltaAngleX);

例如:

local orbitCamera   = cc.OrbitCamera:create(0.5,1,0,90,-90,0)
local scaleTo       = cc.ScaleTo:create(0.5,0)

local spawn = cc.Spawn:create(orbitCamera,scaleTo)
local delay = cc.DelayTime:create(1)

--[[
    local sequence = cc.Sequence:create(delay,spawn,cc.CallFunc:create(@H_403_20@function()
        layout:removeFromParent()
    @H_403_20@end))

    layout:runAction(sequence)
]]

猜你在找的Cocos2d-x相关文章