Upgrade to Pro — share decks privately, control downloads, hide ads and more …

SpriteKit - Up and Running

SpriteKit - Up and Running

A simple practical workshop on understanding and implementing the basics concepts behind SpriteKit - a 2D iOS game framework.


Matheus Albuquerque

September 30, 2016

More Decks by Matheus Albuquerque

Other Decks in Programming


  1. spritekit up and running

  2. Ajalmar Rocha Italus Rodrigues Matheus Martins Gabriela de Carvalho Vítor

    Gomes Augusto Falcão Matheus Albuquerque
  3. introduction

  4. None
  5. None
  6. base concepts

  7. SKScene SKNodes SKActions SKView

  8. SKScene SKNodes SKActions SKView

  9. None
  10. None
  11. SKScene SKNodes SKActions SKView

  12. None
  13. None
  14. SKScene SKNodes SKActions SKView

  15. None
  16. None
  17. SKScene SKNodes SKActions SKView

  18. None
  19. None
  20. LifeCycle

  21. None
  22. hands on Nodes

  23. SK SpriteNode

  24. SK ShapeNode

  25. SK CameraNode

  26. SK LabelNode

  27. SK EmitterNode

  28. Nodes SKSpriteNode SKShapeNode SKCameraNode SKLabelNode SKEmitterNode

  29. challenge

  30. hands on Actions

  31. scaleTo X scaleBy

  32. moveTo X moveBy

  33. animateWith Textures

  34. removeFrom Parent

  35. sequence

  36. group

  37. Actions moveTo x moveBy scaleTo x scaleBy animateWithTextures removeFromParent sequence

    x group
  38. challenge

  39. hands on Physics

  40. None
  41. None
  42. None
  43. None
  44. applyImpulse applyForce applied for a length of time based on

    the amount of simulation time that passes between when you apply the force and when the next frame of the simulation is processed. makes an instantaneous change to the body’s velocity that is independent of the amount of simulation time that has passed.
  45. category BitMask contactTest BitMask collision BitMask

  46. contactTest BitMask collision BitMask Defines which categories this physics body

    belongs to.
  47. category BitMask collision BitMask Defines which categories of bodies cause

    intersection notifications with this physics body.
  48. category BitMask contactTest BitMask Defines which categories of physics bodies

    can collide with this physics body.
  49. None
  50. func didBegin(SKPhysicsContact) func didEnd(SKPhysicsContact)

  51. None
  52. None
  53. SKFieldNode

  54. challenge

  55. thanks.