public CCParallaxScrollNode(CCSpriteSheet sheet) { m_SpriteSheet = sheet; m_ScrollOffsets = new List<CCParallaxScrollOffset>(); m_Batch = new CCSpriteBatchNode(sheet.Frames[0].Texture); PTMRatio = kDefaultPTMRatio; }
public CCAnimation(CCSpriteSheet cs, string[] frames, float delay) { List<CCSpriteFrame> l = new List<CCSpriteFrame>(); foreach(string f in frames) { CCSpriteFrame cf = cs[f]; if (cf != null) { l.Add(cs[f]); } } InitWithSpriteFrames(l, delay); }
public CCAnimation(CCSpriteSheet cs, float delay) { InitWithSpriteFrames(cs.Frames, delay); }
public CCParallaxScrollNode(string textureName, Stream plistFile) : this(textureName) { m_SpriteSheet = new CCSpriteSheet(plistFile, textureName); }