本文整理汇总了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);
}
示例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;
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}