Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alchemist0823 committed Oct 21, 2023
1 parent 576ee4a commit 9e62748
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/ps.json
Expand Up @@ -1077,7 +1077,7 @@
"frame": {
"type": "IntervalValue",
"a": 0,
"b": 0.9999
"b": 4
}
}, {
"type": "LimitSpeedOverLife",
Expand Down
18 changes: 7 additions & 11 deletions src/behaviors/FrameOverLife.ts
@@ -1,16 +1,14 @@
import {Behavior} from "./Behavior";
import {Particle} from "../Particle";
import {FunctionValueGenerator, PiecewiseBezier, ValueGeneratorFromJSON} from "../functions";
import {Behavior} from './Behavior';
import {Particle} from '../Particle';
import {FunctionValueGenerator, PiecewiseBezier, ValueGeneratorFromJSON} from '../functions';

export class FrameOverLife implements Behavior {

type = 'FrameOverLife';
constructor(public frame: FunctionValueGenerator) {
}
constructor(public frame: FunctionValueGenerator) {}

initialize(particle: Particle): void {
if (!(this.frame instanceof PiecewiseBezier)) {
particle.uvTile = this.frame.genValue(0);
particle.uvTile = Math.floor(this.frame.genValue(0));
}
}

Expand All @@ -20,8 +18,7 @@ export class FrameOverLife implements Behavior {
}
}

frameUpdate(delta: number): void {
}
frameUpdate(delta: number): void {}

toJSON(): any {
return {
Expand All @@ -37,6 +34,5 @@ export class FrameOverLife implements Behavior {
clone(): Behavior {
return new FrameOverLife(this.frame.clone());
}
reset(): void {
}
reset(): void {}
}

0 comments on commit 9e62748

Please sign in to comment.