Skip to content

Commit

Permalink
Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
bbazukun123 committed Jan 10, 2024
1 parent e82fc22 commit c404fc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions puzzling-potions/src/match3/Match3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class Match3 extends Container {
}

/** Update the timer */
public update(deltaMs: number) {
this.timer.update(deltaMs);
public update(delta: number) {
this.timer.update(delta);
}
}
6 changes: 3 additions & 3 deletions puzzling-potions/src/match3/Match3Timer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ export class Match3Timer {

/**
* Update timer's internal time and fire the time up callback when finishes
* @param deltaMs The delta time in milliseconds
* @param delta The delta time in milliseconds
*/
public update(deltaMs: number) {
public update(delta: number) {
if (!this.running || this.paused) return;
this.time += deltaMs;
this.time += delta;
if (this.time >= this.duration) {
this.stop();
this.match3.onTimesUp?.();
Expand Down

0 comments on commit c404fc5

Please sign in to comment.