Skip to main content

Posts

Showing posts from April, 2014

adding multiple sprite animation or texture animation in a sprite using sprite kit

while working with textures animations many time you need to store multiple animation with a single sprite for eg hero is a sprite  now hero contain different animation such as walk left , walk right ,walk  up, walk down so here i come with a solution  in .m file copy this code =================================== #import <SpriteKit/SpriteKit.h> //spriteSequence @interface spriteSheet : SKSpriteNode {     //private variable no one    } @property SKTexture   *startingFrame; @property SKSpriteNode *animatedsprite; @property SKAction   *Animation; @property SKAction   *currentAction; @property NSMutableArray *spritesArray; @property NSMutableArray *frameRateArray; @property NSMutableArray *actionKeys; //public mehods -( id ) initSpritesheet:( NSString *)firstFrame; -( void )addAnimation:( NSMutableArray *)frames frameRate:( float )time withKey:( NS...
html5 games and native games html5 which framework and why? ===================================================================== http://www.createjs.com/#!/EaselJS if  you are a html5 developer and looking for a fast and reliable library for you html5 projects(games+banners) then easeljs be your first choice i am working from last two years with this great library and create almost five games running smoothly 60 framerate on both browser and tablets even i gained a stable framerate of 60fps on ipad2 and ipad retina display . what should i follow while creating a html5 games with easeljs =================================================== always use global declaration for reuse variables 1)  http://www.typescriptlang.org/  javascript  classes :) 2) http://wipetouch.codeplex.com/ all swipe of touch events you need for a complex game 3) http://www.greensock.com/ a amazing tween library by greenshock 4) http://indiegamr.com/easeljs-...