TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by iSofTom.
SpriteKit helpers and additions.
The STParallaxNode is a node that create parallax effect in a highly customizable way.
The two subclasses: STControlNode and STControlSprite allow to add some control methods on your nodes.
Those methods allow to be warn when a touchUp event is recognised:
- (void)setTouchUpTarget:(id)target action:(SEL)action;
- (void)setTouchUpBlock:(dispatch_block_t)touchUpBlock;
Those methods allow to be warn when a touchDown event is recognised:
- (void)setTouchDownTarget:(id)target action:(SEL)action;
- (void)setTouchDownBlock:(dispatch_block_t)touchDownBlock;
Those methods allow to be warn when a touchUpInside event is recognised:
- (void)setTouchUpInsideTarget:(id)target action:(SEL)action;
- (void)setTouchUpInsideBlock:(dispatch_block_t)touchUpInsideBlock;
Those methods allow to be warn when a touchUpOutside event is recognised:
- (void)setTouchUpOutsideTarget:(id)target action:(SEL)action;
- (void)setTouchUpOutsideBlock:(dispatch_block_t)touchUpOutsideBlock;
Those methods allow to be warn when a touchDown event is recognised:
- (void)setTouchDownTarget:(id)target action:(SEL)action;
- (void)setTouchDownBlock:(dispatch_block_t)touchDownBlock;
Those methods allow to easyly unarchive emitter resources:
+ (SKEmitterNode*)emitterWithResourceNamed:(NSString*)resourceName;
+ (SKEmitterNode*)emitterWithResourceNamed:(NSString*)resourceName inBundle:(NSBundle*)bundle;
This category add some convenient methods to run actions:
- (void)runActionsSequence:(NSArray*)actions;
- (void)runActionsSequenceForever:(NSArray*)actions;
- (void)runActionsGroup:(NSArray*)actions;
- (void)runActionsGroupForever:(NSArray*)actions;
- (void)runAction:(SKAction*)action afterDelay:(NSTimeInterval)delay;
Propose an alternative algorithm for the SKScene's nodeAtPoint:
method in order to deliver the touch to the pointed node considering its userInteractionEnabled value. In other words: if a node's userInteractionEnabled value is NO, the touch will be forwarded to the node below.
Add some function to easyly manipulate CGPoint and CGSize.
To include this component in your project, I recommend you to use Cocoapods:
pod "STSpriteKit"
to your Podfile.