Options
All
  • Public
  • Public/Protected
  • All
Menu

パーティクルの制御クラスです。

Hierarchy

  • ParticleSystem

Index

Constructors

constructor

Properties

Private _activeParticles

_activeParticles: Particle[]

Private _drawingData

_drawingData: DrawingData

Private _frameCount

_frameCount: number = 0

Private _particlesPool

_particlesPool: Particle[]

Private _playing

_playing: boolean

container

container: Container

パーティクルが配置されるコンテナーです。

Private shapeGenerator

shapeGenerator: ShapeGenerator

Static Private HELPER_GRAPHICS

HELPER_GRAPHICS: Graphics = new createjs.Graphics()

グラフィックオブジェクトです。内部計算に使用します。

Accessors

accelerationDirection

accelerationDirection:

重力方向 (度)です。 重力です。

accelerationSpeed

accelerationSpeed:

重力です。 重力です。

alphaCurveType

alphaCurveType:

透明度の計算式の設定です。 透明度の計算式の設定です。

blendMode

blendMode:

trueのときシェイプを加算合成します。 trueのときシェイプを加算合成します。

emitFrequency

emitFrequency:

1秒あたりの発生数です。 1秒あたりの発生数です。

finishAlpha

finishAlpha:

終了時の透明度です。 終了時の透明度です。

finishAlphaVariance

finishAlphaVariance:

終了時の透明度のばらつきです。 終了時の透明度のばらつきです。

finishScale

finishScale:

終了時のスケールです。 終了時のスケールです。

finishScaleVariance

finishScaleVariance:

終了時のスケールのばらつきです。 終了時のスケールのばらつきです。

friction

friction:

摩擦です。 摩擦です。

initialDirection

initialDirection:

初期速度 - 方向 (度)です。 初期速度 - 方向 (度)です。

initialDirectionVariance

initialDirectionVariance:

初期速度 - 方向のばらつき (度)です。 初期速度 - 方向のばらつき (度)です。

initialSpeed

initialSpeed:

初期速度 (px)です。 初期速度 (px)です。

initialSpeedVariance

initialSpeedVariance:

初期速度のばらつきです。 初期速度のばらつきです。

lifeSpan

lifeSpan:

ライフ(フレーム数)です。 ライフ(フレーム数)です。

lifeSpanVariance

lifeSpanVariance:

ライフのばらつき(フレーム数)です。 ライフのばらつき(フレーム数)です。

shapeIdList

shapeIdList:

使用するシェイプID設定です。 使用するシェイプID設定です。

startAlpha

startAlpha:

始時の透明度です。 始時の透明度です。

startAlphaVariance

startAlphaVariance:

開始時の透明度のばらつきです。 開始時の透明度のばらつきです。

startColor

startColor:

初期カラーの設定です。 初期カラーの設定です。

startScale

startScale:

開始時のスケールです。 開始時のスケールです。

startScaleVariance

startScaleVariance:

開始時のスケールのばらつきです。 開始時のスケールのばらつきです。

startX

startX:

発生基準位置 - X座標 (px)です。 発生基準位置 - X座標 (px)です。

startXVariance

startXVariance:

発生基準位置 - X座標のばらつき (px)です。 発生基準位置 - X座標のばらつき (px)です。

startY

startY:

発生位置 - Y座標 (px)です。 発生位置 - Y座標 (px)です。

startYVariance

startYVariance:

発生基準位置 - X座標のばらつき (px)です。 発生基準位置 - X座標のばらつき (px)です。

Methods

Private animate

  • animate(): void

Private calcCurrentValue

  • calcCurrentValue(start: number, end: number, life: number): number
  • 現在の年齢依存の数値を計算します。

    Parameters

    • start: number

      開始時の値です。

    • end: number

      終了時の値です。

    • life: number

      現在の寿命を示します。開始時は1.0で、終了時は0.0の想定です。

    Returns number

    現在の値です。

Private calcRandomValueWithRange

  • calcRandomValueWithRange(minValue: number, maxValue: number, value: number): number
  • 一定範囲の数値を計算します。

    Parameters

    • minValue: number
    • maxValue: number
    • value: number

    Returns number

Private calcRandomValueWithVariance

  • calcRandomValueWithVariance(value: number, variance: number, isInteger: boolean): number
  • ばらつきのある値を計算し取得します。

    Parameters

    • value: number

      基準値です。

    • variance: number

      バラつきの範囲です。

    • isInteger: boolean

      整数であるかを指定します。

    Returns number

    数値を返します。

clear

  • clear(): void

dispose

  • dispose(): void

Private emit

  • emit(): void

Private emitParticle

  • emitParticle(): void

Private generateParticle

generateShape

  • generateShape(particle: Particle, shapeIdList: string[]): void

importFromJson

  • importFromJson(jsonObject: any): void
  • パーティクルの設定データをJson形式のオブジェクトで取り込みます。

    Parameters

    • jsonObject: any

    Returns void

isPlaying

  • isPlaying(): boolean
  • パーティクルのアニメーションが再生されているかどうかを示します。

    Returns boolean

Private lifeCheck

  • lifeCheck(): void

pause

  • pause(): void

resume

  • resume(): void

setData

Private setParticleParameter

  • setParticleParameter(particle: Particle): void

update

  • update(): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc