Skip to content

Instantly share code, notes, and snippets.

@sarahsnow1
Created June 10, 2014 04:08
Show Gist options
  • Save sarahsnow1/f97aa22127ddbd3cf549 to your computer and use it in GitHub Desktop.
Save sarahsnow1/f97aa22127ddbd3cf549 to your computer and use it in GitHub Desktop.
SKNode+Helper.h
@interface SKNode (Helper)
- (float)width;
- (float)height;
- (float)top;
- (float)bottom;
- (float)left;
- (float)right;
- (void)centerXInParent;
- (void)centerXInParentAndSetY:(int)y;
- (void)centerYInParent;
- (void)centerYInParentAndSetX:(int)x;
- (void)centerInParent;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment