iOS Coder Skills with Sprite Kit and SKNode

iOS Coder Skills with Sprite Kit and SKNode
Slide Note
Embed
Share

Delve into the world of iOS coding through Sprite Kit, SKNode, SKSpriteNode, and more. Learn about creating textures, handling touch events, and utilizing SKActions to enhance your app development skills.

  • iOS coding
  • Sprite Kit
  • SKNode
  • textures
  • touch events

Uploaded on Feb 15, 2025 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Ios7 ios_coder@126.com

  2. Sprite Kit cocos 2d ios OPENGL

  3. Sprite kit SKView SKScene SKNode SKSpriteNode

  4. SKNode SKSpriteNode SKScene SKView

  5. SKTexture + (SKTexture *)textureWithImageNamed:(NSString *)name + (SKTexture *)textureWithRect:(CGRect)rect inTexture:(SKTexture *)texture + (SKTexture *)textureWithCGImage:(CGImageRef)image

  6. SKTextureAtlas + (SKTextureAtlas *)atlasNamed:(NSString *)name - (SKTexture *)textureNamed:(NSString *)name

  7. SKNode + (instancetype)node Position - (void)addChild:(SKNode *)node xScale (void)removeFromParent yScale (void)removeAllActions Alpha - (BOOL)containsPoint:(CGPoint)p Paused Hidden userInteractionEnabled Parent Children

  8. SKSpriteNode anchorPoint size + (instancetype)spriteNodeWithTexture:(SKTexture *)texture size: + (instancetype)spriteNodeWithTexture:(SKTexture *)textureSKNode + (instancetype)spriteNodeWithImageNamed:(NSString *)name + (instancetype)spriteNodeWithColor:(SKColor *)color size:(CGSize)size

  9. SKScene Y anchorPoint 0,0 X

  10. -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event -(void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event -(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event -(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event UITouch locationInNode CGRectIntersectsRect(CGRect rect1, CGRect rect2) CGRectContainsRect(CGRect rect1, CGRect rect2) CGRectContainsPoint(CGRect rect, CGPoint point)

  11. SKAction + (SKAction *)moveTo:(CGPoint)location duration:(NSTimeInterval)sec + (SKAction *)sequence:(NSArray *)actions + (SKAction *)group:(NSArray *)actions + (SKAction *)playSoundFileNamed:(NSString*)soundFile waitForCompletion:(BOOL)wait + (SKAction *)repeatActionForever:(SKAction *)action + (SKAction *)waitForDuration:(NSTimeInterval)sec + (SKAction *)animateWithTextures:(NSArray *)textures timePerFrame:(NSTimeInterval)sec

Related


More Related Content