PokéRogue
    Preparing search index...

    Type Alias Features

    Determines the features of the browser running this Phaser Game instance. These values are read-only and populated during the boot sequence of the game. They are then referenced by internal game systems and are available for you to access via this.sys.game.device.features from within any Scene.

    type Features = {
        canvas: boolean;
        canvasBitBltShift: boolean | null;
        file: boolean;
        fileSystem: boolean;
        getUserMedia: boolean;
        littleEndian: boolean;
        localStorage: boolean;
        pointerLock: boolean;
        stableSort: boolean;
        support32bit: boolean;
        vibration: boolean;
        webGL: boolean;
        worker: boolean;
    }
    Index
    canvas: boolean

    Indicates whether the HTML5 Canvas API (CanvasRenderingContext2D) is available in this browser. Required for the Canvas renderer to function.

    canvasBitBltShift: boolean | null

    True if canvas supports a 'copy' bitblt onto itself when the source and destination regions overlap. This is used for fast pixel copy operations. Will be null if it could not be determined, false on iOS and Safari where it is known not to work.

    file: boolean

    Indicates whether the File, FileReader, FileList, and Blob APIs are all available, enabling file reading operations within the browser.

    fileSystem: boolean

    Indicates whether the FileSystem API (requestFileSystem) is available, allowing sandboxed local file storage access.

    getUserMedia: boolean

    Indicates whether the getUserMedia API is available and functional. Used for accessing camera and microphone input. Note: older versions of Firefox (below 21) may report support but not actually work correctly.

    littleEndian: boolean

    Indicates whether the device uses little-endian byte ordering. Only detected if the browser supports TypedArrays. Will be null if endianness could not be determined.

    localStorage: boolean

    Indicates whether the Web Storage localStorage API is available for persisting key-value data between browser sessions.

    pointerLock: boolean

    Indicates whether the Pointer Lock API is available, which allows the mouse cursor to be hidden and locked to the game canvas for first-person style input.

    stableSort: boolean

    Indicates whether the browser's Array.sort implementation is stable, meaning equal elements retain their original relative order after sorting.

    support32bit: boolean

    Indicates whether the device supports 32-bit pixel manipulation of canvas image data using ArrayBuffer and typed array views (Uint8ClampedArray / Int32Array). Requires little-endian byte ordering.

    vibration: boolean

    Indicates whether the Vibration API is available, enabling haptic feedback on supported mobile devices.

    webGL: boolean

    Indicates whether WebGL is available in this browser. Required for the WebGL renderer to function.

    worker: boolean

    Indicates whether Web Workers are available, enabling background JavaScript execution on a separate thread.