Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Sprite

Hierarchy

  • Sprite

Index

Constructors

constructor

  • new Sprite(textureDict: any, textureName: any, pos: any, size: any, heading?: number, color?: Color): Sprite
  • Parameters

    • textureDict: any
    • textureName: any
    • pos: any
    • size: any
    • Default value heading: number = 0
    • Default value color: Color = new Color(255, 255, 255, 255)

    Returns Sprite

Properties

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(textureDictionary?: string, textureName?: string, pos?: Point, size?: Size, heading?: number, color?: Color, loadTexture?: boolean): void
  • Parameters

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

    Returns void

loadTextureDictionary

  • loadTextureDictionary(): void

Generated using TypeDoc