UserDefaults

extension UserDefaults
  • The game’s stored data.

    Declaration

    Swift

    static var store: UserDefaults { get }
  • The IAP module containing IAP content flags.

    Declaration

    Swift

    static var iapModule: UserDefaults { get }

General

  • The scale zoom for the camera.

    Declaration

    Swift

    static var cameraScale: Float
  • Whether to use intelligent camera movement.

    Declaration

    Swift

    static var intelligentCamera: Bool
  • Whether to display dust particles.

    Declaration

    Swift

    static var dustParticles: Bool

Sound

  • The music volume.

    Declaration

    Swift

    static var musicVolume: Float
  • Whether to play the costume change sound.

    Declaration

    Swift

    static var playChangeSound: Bool
  • Whether to play the computer turn on sound.

    Declaration

    Swift

    static var playComputerSound: Bool
  • Whether to play the lever sound.

    Declaration

    Swift

    static var playLeverSound: Bool
  • Whether to play the alarm dound.

    Declaration

    Swift

    static var playAlarmSound: Bool

Advanced

  • Whether the player has the ability to use character attributes on the main menu.

    Declaration

    Swift

    static var canShowUnmodeled: Bool
  • Whether to update character attributes.

    Declaration

    Swift

    static var showUnmodeled: Bool
  • Whether to display the node count.

    Declaration

    Swift

    static var debugNode: Bool
  • Whether to display the frames per second.

    Declaration

    Swift

    static var debugFPS: Bool
  • Whether to show the outlines of physics bodies.

    Declaration

    Swift

    static var debugShowPhysics: Bool