Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Sprite

Index

Constructors

constructor

  • new Sprite(textureDict: string, textureName: string, pos?: Point, size?: Size, heading?: number, color?: Color): Sprite

Properties

Private _textureDict

_textureDict: string

color

color: Color

heading

heading: number

pos

pos: Point

size

size: Size

textureName

textureName: string

visible

visible: boolean

Accessors

IsTextureDictionaryLoaded

  • get IsTextureDictionaryLoaded(): boolean

TextureDict

  • get TextureDict(): string
  • set TextureDict(v: string): void

Methods

draw

  • draw(resolution?: Size): void
  • draw(textureDictionary?: string, textureName?: string, pos?: Point, size?: Size, heading?: number, color?: Color, loadTexture?: boolean, resolution?: Size): void
  • Parameters

    • Optional resolution: Size

    Returns void

  • Parameters

    • Optional textureDictionary: string
    • Optional textureName: string
    • Optional pos: Point
    • Optional size: Size
    • Optional heading: number
    • Optional color: Color
    • Optional loadTexture: boolean
    • Optional resolution: Size

    Returns void

loadTextureDictionary

  • loadTextureDictionary(): void

Generated using TypeDoc