Skip to content

Commit

Permalink
better snow (slower and dispersal)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirdukkkkk committed Dec 27, 2023
1 parent 382d023 commit 4e6c3bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Snow/SnowParticle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class SnowParticle extends Sprite {
x: random(0, SnowParticle.app.renderer.width),
y: -5,
vx: random(-2, 2),
vy: random(2, 10),
vy: random(8, 10),
alpha: random(0, 1),
})

Expand All @@ -50,12 +50,12 @@ export class SnowParticle extends Sprite {
public reset() {
this.x = random(0, SnowParticle.app.renderer.width);
this.y = 0;
this.vx = random(0, 10);
this.vx = random(-3, 3);
}

public randomize() {
this.vx += random(-2, 2)
this.vy = random(2, 10)
this.vx += random(-1, 1)
this.vy = random(2, 6)
}

public update(time: number) {
Expand Down

0 comments on commit 4e6c3bd

Please sign in to comment.