Skip to content

Commit

Permalink
fixed particles
Browse files Browse the repository at this point in the history
  • Loading branch information
NightLightLumie committed Nov 19, 2023
1 parent 72258d6 commit 177d851
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Turtle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export class Turtle extends Button {
this.physicsPosition.y = this.border.bottom - this.feetOffset;
if (this.lostBalance && !this.hasCrashed) {
this.hasCrashed = true;
this.scene.addDust(this.x+this.sprite.x, this.y+this.sprite.y-75);
this.scene.addDust(this.x, this.y-90);
this.emit("crashed");
}
}
Expand Down Expand Up @@ -297,7 +297,7 @@ export class Turtle extends Button {
let s = Math.round(this.multiplier*this.baseScore);
this.scene.addScore(s);
this.scene.sound.play("score", {volume: 1.0});
this.scene.addTextParticle(this.x+this.sprite.x, this.y+this.sprite.y-70, "green", `+ $` + `${s}`, 80);
this.scene.addTextParticle(this.x, this.y-70, "green", `+ $` + `${s}!`, 80);
}

/* Jumping */
Expand Down
2 changes: 1 addition & 1 deletion src/scenes/GameScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class GameScene extends BaseScene {
this.overworld.addDust(x,y);
}

addTextParticle(x: number,y: number, color: string, content: string, size: number)
addTextParticle(x: number, y: number, color: string, content: string, size: number)
{
this.textParticle(x, y, color, content, undefined, size);
}
Expand Down

0 comments on commit 177d851

Please sign in to comment.