Function create_spritesheet_config

  • Create spritesheet config, can be used to configure the frames within the spritesheet. Can be used as config at load_spritesheet.

    Parameters

    • frame_width: number

      width of frame in pixels

    • frame_height: number

      height of frame in pixels

    • start_frame: number = 0

      first frame to start parsing from

    • margin: number = 0

      margin in the image; this is the space around the edge of the frames

    • spacing: number = 0

      the spacing between each frame in the image

    Returns ObjectConfig

    spritesheet config