当前位置: 首页>>代码示例>>C#>>正文


C# cocos2d.ccGridSize类代码示例

本文整理汇总了C#中cocos2d.ccGridSize的典型用法代码示例。如果您正苦于以下问题:C# ccGridSize类的具体用法?C# ccGridSize怎么用?C# ccGridSize使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ccGridSize类属于cocos2d命名空间,在下文中一共展示了ccGridSize类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: turnOffTile

        public void turnOffTile(ccGridSize pos)
        {
            ccQuad3 coords = new ccQuad3();

            //memset(coords, 0, sizeof(ccQuad3));
            setTile(pos, coords);
        }
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:7,代码来源:CCTurnOffTiles.cs

示例2: actionWithSize

 /// <summary>
 /// creates the action with the grid size and the duration 
 /// </summary>
 public static CCFadeOutUpTiles actionWithSize(ccGridSize gridSize, float time)
 {
     CCFadeOutUpTiles pAction = new CCFadeOutUpTiles();
     if (pAction.initWithSize(gridSize, time))
     {
         return pAction;
     }
     return null;
 }
开发者ID:hiceka,项目名称:cocos2d-x-for-xna,代码行数:12,代码来源:CCFadeOutUpTiles.cs

示例3: testFunc

        public override float testFunc(ccGridSize pos, float time)
        {
            CCPoint n = new CCPoint((float)(m_sGridSize.x * (1.0f - time)), (float)(m_sGridSize.y * (1.0f - time)));
            if ((pos.x + pos.y) == 0)
            {
                return 1.0f;
            }

            return (float)Math.Pow((n.x + n.y) / (pos.x + pos.y), 6);
        }
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:10,代码来源:CCFadeOutBLTiles.cs

示例4: actionWithSize

        /// <summary>
        /// creates the action with size and duration
        /// </summary>
        public static CCGridAction actionWithSize(ccGridSize gridSize, float duration)
        {
            CCGridAction pAction = new CCGridAction();
            if (pAction.initWithSize(gridSize, duration))
            {
                return pAction;
            }

            return null;
        }
开发者ID:liwq-net,项目名称:cocos2d-for-xna-windows,代码行数:13,代码来源:CCGridAction.cs

示例5: testFunc

        public virtual float testFunc(ccGridSize pos, float time)
        {
            CCPoint n = new CCPoint((float)(m_sGridSize.x * time), (float)(m_sGridSize.y * time));
            if ((n.X + n.Y) == 0.0f)
            {
                return 1.0f;
            }

            return (float)Math.Pow((pos.x + pos.y) / (n.X + n.Y), 6);
        }
开发者ID:liwq-net,项目名称:liwq718,代码行数:10,代码来源:CCFadeOutTRTiles.cs

示例6: testFunc

        public virtual float testFunc(ccGridSize pos, float time)
        {
            CCPoint n = new CCPoint((float)(m_sGridSize.x * (1.0f - time)), (float)(m_sGridSize.y * (1.0f - time)));
            if (pos.y == 0)
            {
                return 1.0f;
            }

            return (float)Math.Pow(n.y / pos.y, 6);
        }
开发者ID:ChowZenki,项目名称:cocos2d-x-for-xna,代码行数:10,代码来源:CCFadeOutDownTiles.cs

示例7: testFunc

        public override float testFunc(ccGridSize pos, float time)
        {
            CCPoint n = new CCPoint((float)(m_sGridSize.x * time), (float)(m_sGridSize.y * time));
            if (n.y == 0.0f)
            {
                return 1.0f;
            }

            return (float)Math.Pow(pos.y / n.y, 6);
        }
开发者ID:hiceka,项目名称:cocos2d-x-for-xna,代码行数:10,代码来源:CCFadeOutUpTiles.cs

示例8: actionWithSize

        /// <summary>
        /// creates the action with the grid size and the duration
        /// </summary>
        public static new CCTurnOffTiles actionWithSize(ccGridSize size, float d)
        {
            CCTurnOffTiles pAction = new CCTurnOffTiles();
            if (pAction.initWithSize(size, d))
            {
                return pAction;
            }

            return null;
        }
开发者ID:liwq-net,项目名称:liwq718,代码行数:13,代码来源:CCTurnOffTiles.cs

示例9: actionWithSeed

        /// <summary>
        /// creates the action with a random seed, the grid size and the duration 
        /// </summary>
        public static CCTurnOffTiles actionWithSeed(int s, ccGridSize gridSize, float duration)
        {
            CCTurnOffTiles pAction = new CCTurnOffTiles();
            if (pAction.initWithSeed(s, gridSize, duration))
            {
                return pAction;
            }

            return null;
        }
开发者ID:liwq-net,项目名称:liwq718,代码行数:13,代码来源:CCTurnOffTiles.cs

示例10: actionWithSize

        /// <summary>
        /// create the action
        /// </summary>
        public static CCPageTurn3D actionWithSize(ccGridSize gridSize, float time)
        {
            CCPageTurn3D pAction = new CCPageTurn3D();

            if (pAction.initWithSize(gridSize, time))
            {
                return pAction;
            }

            return null;
        }
开发者ID:liwq-net,项目名称:liwq718,代码行数:14,代码来源:CCPageTurn3D.cs

示例11: actionWithRange

        /// <summary>
        /// creates the action with a range, shake Z vertices, a grid and duration
        /// </summary>
        public static CCShaky3D actionWithRange(int range, bool shakeZ, ccGridSize gridSize, float duration)
        {
            CCShaky3D pAction = new CCShaky3D();

            if (pAction.initWithRange(range, shakeZ, gridSize, duration))
            {
                return pAction;
            }

            return null;
        }
开发者ID:liwq-net,项目名称:liwq718,代码行数:14,代码来源:CCShaky3D.cs

示例12: gridWithSize

        public static CCGridBase gridWithSize(ccGridSize gridSize, Texture texture, bool flipped)
        {
            CCGridBase pGridBase = new CCGridBase();

            if (pGridBase.initWithSize(gridSize, texture, flipped))
            {
                return pGridBase;
            }

            return null;
        }
开发者ID:liwq-net,项目名称:liwq718,代码行数:11,代码来源:CCGridBase.cs

示例13: gridWithSize

        public static new CCTiledGrid3D gridWithSize(ccGridSize gridSize, CCTexture2D pTexture, bool bFlipped)
        {
            CCTiledGrid3D pRet = new CCTiledGrid3D();

            if (pRet.initWithSize(gridSize, pTexture, bFlipped))
            {
                return pRet;
            }

            return null;
        }
开发者ID:hiceka,项目名称:cocos2d-x-for-xna,代码行数:11,代码来源:CCTiledGrid3D.cs

示例14: initWithSize

        /** initializes the action with size and duration */
        public virtual bool initWithSize(ccGridSize gridSize, float duration)
        {
            if (base.initWithDuration(duration))
            {
                m_sGridSize = gridSize;

                return true;
            }

            return false;
        }
开发者ID:ChowZenki,项目名称:cocos2d-x-for-xna,代码行数:12,代码来源:CCGridAction.cs

示例15: actionWithJumps

        public static CCJumpTiles3D actionWithJumps(int j, float amp, ccGridSize gridSize, float duration)
        {
            CCJumpTiles3D pAction = new CCJumpTiles3D();

            if (pAction.initWithJumps(j, amp, gridSize, duration))
            {
                return pAction;
            }

            return null;
        }
开发者ID:liwq-net,项目名称:liwq718,代码行数:11,代码来源:CCJumpTiles3D.cs


注:本文中的cocos2d.ccGridSize类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。