Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new SmokeEffect(rangeX: Range, rangeY: Range, game: Game, particleAmount?: number, speedRangeX?: Range, speedRangeY?: Range, maxAge?: number, color?: string, interval?: number, scene: Scene): SmokeEffect

Properties

culled

culled: boolean
memberof

Effect

description

Determines if the Effect should be visible by the current scene's current camera

since

2.1.0

following

memberof

Effect

description

A gameobject that the Effect is following

since

1.2.0

game

game: Game
memberof

Effect

description

Game instance

since

1.2.0

Readonly id

id: string
memberof

Effect

description

A unique identifier for the Effect

since

1.2.0

Protected interval

interval: number

Protected maxAge

maxAge: number

particleEmitter

particleEmitter: ParticleEmitter
memberof

Effect

description

ParticleEmitter to control

since

1.2.0

Protected randomMaxOffset

randomMaxOffset: number

rangeX

rangeX: Range
memberof

Effect

description

Range of numbers for x pos

since

1.2.0

rangeY

rangeY: Range
memberof

Effect

description

Range of numbers for y pos

since

1.2.0

Readonly shape

shape: string
memberof

Effect

description

Shape, always "Effect" used for Scene.displayList

since

1.2.0

Protected speedRangeX

speedRangeX: Range

Protected speedRangeY

speedRangeY: Range

visible

visible: boolean
memberof

Effect

description

Determines the visibility of the Effect

since

1.2.0

zIndex

zIndex: number
memberof

Effect

description

Used for depth sorted

since

1.2.0

Methods

_draw

  • _draw(): void

emit

  • emit(): void

emitFor

  • emitFor(ms: number): void

follow

stopEmit

  • stopEmit(): void

stopFollow

  • stopFollow(): void

Generated using TypeDoc