@kayahr/wastelib
    Preparing search index...

    Class Sprites

    Container for the sprites defined in the ic0_9.wlf and masks.wlf files.

    Implements

    Index

    Methods

    • Returns the sprite image with the given index.

      Parameters

      • index: number

        The index of the sprite.

      Returns Sprite

      The sprite image.

      RangeError if the index is out of bounds.

    • Parses sprites from the given arrays and returns it.

      Parameters

      • imageArray: Uint8Array

        The image data array with the IC0_9.wlf file content to parse.

      • maskArray: Uint8Array

        The transparency mask array with the MASKS.WLF file content to parse.

      Returns Sprites

      The parsed sprites.