Skip to content

Instantly share code, notes, and snippets.

@notjosh
Created October 9, 2012 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notjosh/3861213 to your computer and use it in GitHub Desktop.
Save notjosh/3861213 to your computer and use it in GitHub Desktop.
@interface CharacterSprite : CCSprite
@property (nonatomic, strong) HelloWorldLayer *layer;
@property (nonatomic, strong) CCAnimation *facingForwardAnimation;
@property (nonatomic, strong) CCAnimation *facingBackAnimation;
@property (nonatomic, strong) CCAnimation *facingLeftAnimation;
@property (nonatomic, strong) CCAnimation *facingRightAnimation;
@property (nonatomic, strong) CCAnimation *curAnimation;
@property (nonatomic, strong) CCAnimate *curAnimate;
@property (nonatomic, strong) NSString *characterName;
@property (nonatomic, assign) BOOL *moving;
@property (nonatomic, strong) NSMutableArray *spOpenSteps;
@property (nonatomic, strong) NSMutableArray *spClosedSteps;
@property (nonatomic, strong) NSMutableArray *shortestPath;
@property (nonatomic, strong) CCAction *currentStepAction;
@property (nonatomic, strong) NSValue *pendingMove;
- (void)moveToward:(CGPoint)target;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment