Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ImageManager

Static class that manages images. Loading the images and create bitmap objects.

Hierarchy

  • ImageManager

Index

Constructors

Protected constructor

Properties

Static _cache

_cache: {}

Type declaration

  • [key: string]: any

Static _emptyBitmap

_emptyBitmap: Bitmap

Static _system

_system: {}

Type declaration

  • [key: string]: any

Static faceHeight

faceHeight: number

returns 144

Static faceWidth

faceWidth: number

144

Static iconHeight

iconHeight: number

returns 32

Static iconWidth

iconWidth: number

returns 32

Methods

Static clear

  • clear(): void

Static isBigCharacter

  • isBigCharacter(filename: string): boolean
  • Returns true if the given filename is a large character. Must contain a '$' in the file name to be a large character.

    memberof

    ImageManagerStatic

    Parameters

    • filename: string

    Returns boolean

Static isObjectCharacter

  • isObjectCharacter(filename: string): boolean
  • Returns true if the given filename is an object character. Must contain a '!' in the file name to be an object character.

    memberof

    ImageManagerStatic

    Parameters

    • filename: string

    Returns boolean

Static isReady

  • isReady(): boolean

Static isZeroParallax

  • isZeroParallax(filename: string): boolean

Static loadAnimation

  • loadAnimation(filename: string, hue?: number): Bitmap

Static loadBattleback1

  • loadBattleback1(filename: string, hue?: number): Bitmap

Static loadBattleback2

  • loadBattleback2(filename: string, hue?: number): Bitmap

Static loadBitmap

  • loadBitmap(folder: string, filename: string, hue: number, smooth: boolean): Bitmap

Static loadBitmapFromUrl

  • loadBitmapFromUrl(url: string): Bitmap

Static loadCharacter

  • loadCharacter(filename: string, hue?: number): Bitmap

Static loadEmptyBitmap

  • loadEmptyBitmap(path: string, hue: number): Bitmap

Static loadEnemy

  • loadEnemy(filename: string, hue?: number): Bitmap

Static loadFace

  • loadFace(filename: string, hue?: number): Bitmap

Static loadNormalBitmap

  • loadNormalBitmap(path: string, hue: number): Bitmap

Static loadParallax

  • loadParallax(filename: string, hue?: number): Bitmap

Static loadPicture

  • loadPicture(filename: string, hue?: number): Bitmap

Static loadSvActor

  • loadSvActor(filename: string, hue?: number): Bitmap

Static loadSvEnemy

  • loadSvEnemy(filename: string, hue?: number): Bitmap

Static loadSystem

  • loadSystem(filename: string, hue?: number): Bitmap

Static loadTileset

  • loadTileset(filename: string, hue?: number): Bitmap

Static loadTitle1

  • loadTitle1(filename: string, hue?: number): Bitmap

Static loadTitle2

  • loadTitle2(filename: string, hue?: number): Bitmap

Static throwLoadError

  • throwLoadError(bitmap: Bitmap): void

Generated using TypeDoc