public CCParallaxScrollNode(CCSpriteSheet sheet)
 {
     m_SpriteSheet = sheet;
     m_ScrollOffsets = new List<CCParallaxScrollOffset>();
     m_Batch = new CCSpriteBatchNode(sheet.Frames[0].Texture);
     PTMRatio = kDefaultPTMRatio;
 }
Example #2
0
 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);
 }
Example #3
0
 public CCAnimation(CCSpriteSheet cs, float delay)
 {
     InitWithSpriteFrames(cs.Frames, delay);
 }
Example #4
0
 public CCAnimation(CCSpriteSheet cs, float delay)
 {
     InitWithSpriteFrames(cs.Frames, delay);
 }
 public CCParallaxScrollNode(string textureName, Stream plistFile)
     : this(textureName)
 {
     m_SpriteSheet = new CCSpriteSheet(plistFile, textureName);
 }
Example #6
0
 public CCParallaxScrollNode(string textureName, Stream plistFile)
     : this(textureName)
 {
     m_SpriteSheet = new CCSpriteSheet(plistFile, textureName);
 }