GameScene

class GameScene : SKScene

GameScene with the gamification tree

  • Creates a scene with size and given tree level

    Declaration

    Swift

    init(size: CGSize, treeLevel: Int, fruit: Bool = false, fruitTapCallback: @escaping () -> Void = {})
  • Recuired but not used. Do not use

    Declaration

    Swift

    required init?(coder aDecoder: NSCoder)
  • Removes the fruit with an explosion

    Declaration

    Swift

    func removeFruit()
  • Delecate method for handling user input Currenly hooks up the callback event for the coupon fruit.

    Declaration

    Swift

    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?)