¡@

Home 

2014/10/15 ¤U¤È 10:14:21

iphone Programming Glossary: spritesheet

Using CGContext to display a sprite sheet iPhone

http://stackoverflow.com/questions/2863626/using-cgcontext-to-display-a-sprite-sheet-iphone

to work. Something like this CGSize size CGSizeMake xSize ySize UIGraphicsBeginImageContext size CGContextClipToRect spriteSheet.size imageRect spriteSheet drawAtPoint CGPointMake xPos yPos UIImage newImage UIGraphicsGetImageFromCurrentImageContext.. CGSize size CGSizeMake xSize ySize UIGraphicsBeginImageContext size CGContextClipToRect spriteSheet.size imageRect spriteSheet drawAtPoint CGPointMake xPos yPos UIImage newImage UIGraphicsGetImageFromCurrentImageContext UIGraphicsEndImageContext return..

how to pause and resume action applied to the ccSprite?

http://stackoverflow.com/questions/6654468/how-to-pause-and-resume-action-applied-to-the-ccsprite

I have created an animation like CCSpriteFrameCache sharedSpriteFrameCache addSpriteFramesWithFile @ Actor.plist spriteSheet CCSpriteBatchNode batchNodeWithFile @ Actor.pvr.ccz self addChild spriteSheet NSMutableArray walkAnimFrames NSMutableArray.. addSpriteFramesWithFile @ Actor.plist spriteSheet CCSpriteBatchNode batchNodeWithFile @ Actor.pvr.ccz self addChild spriteSheet NSMutableArray walkAnimFrames NSMutableArray array for int i 1 i 8 i walkAnimFrames addObject CCSpriteFrameCache sharedSpriteFrameCache.. by creating a animation with 1 frame CCSpriteFrameCache sharedSpriteFrameCache addSpriteFramesWithFile @ Actor.plist spriteSheet CCSpriteBatchNode batchNodeWithFile @ Actor.pvr.ccz self addChild spriteSheet NSMutableArray walkAnimFrames NSMutableArray..