phaser/todo/TS Source/particles/initialize/Radius.ts
2013-09-13 16:16:48 +01:00

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;
}
}
}