mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 17:16:03 +00:00
33 lines
570 B
TypeScript
33 lines
570 B
TypeScript
/// <reference path="../../_definitions.ts" />
|
|
|
|
module Phaser.Particles.Initializers {
|
|
|
|
export class Radius extends Initialize {
|
|
|
|
constructor(a,b,c) {
|
|
|
|
super();
|
|
|
|
this.radius = ParticleUtils.setSpanValue(a, b, c);
|
|
|
|
}
|
|
|
|
radius: Phaser.Particles.Span;
|
|
|
|
reset(a, b, c) {
|
|
|
|
this.radius = ParticleUtils.setSpanValue(a, b, c);
|
|
|
|
}
|
|
|
|
initialize(particle) {
|
|
|
|
particle.radius = this.radius.getValue();
|
|
particle.transform.oldRadius = particle.radius;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|