API

Class SpriteMap

Class used to manage a grid restricted sprite deployment on an Output plane.

Implements

Index
atlasJSON: ISpriteJSONAtlas

The JSON file with the frame and meta data

name: string

The Name of the spriteMap

Arguments passed with the Constructor

Public Sprite Storage array, parsed from atlasJSON

spriteSheet: Texture

The systems Sprite Sheet Texture

  • Modifies the data of the animationMap

    Parameters

    • cellID: number = 0

      is the Index of the Sprite

    • _frame: number = 0

      is the target Animation frame

    • toCell: number = 0

      is the Target Index of the next frame of the animation

    • time: number = 0

      is a value between 0-1 that is the trigger for when the frame should change tiles

    • speed: number = 1

      is a global scalar of the time variable on the map.

    Returns void