Skip to content

Commit

Permalink
Return employees to their starting position
Browse files Browse the repository at this point in the history
  • Loading branch information
Golen87 committed Aug 20, 2024
1 parent a8dd959 commit e4cec27
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/scenes/GameScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,15 @@ export class GameScene extends BaseScene {
endDay() {
this.customerSpawnTimer.destroy();

// Return employees to their starting positions
this.employees.forEach((e) => {
const path = new Phaser.Curves.Path();
path.moveTo(e.x, e.y);
path.lineTo(e.startX, e.startY);
e.walk(path);
});

//this.stations.forEach((s) => s.returnItems());
// Fix this later
// this.employees.forEach((e) => e.walkTo(e.startX, e.startY));
this.resumeInvButton();
this.cycleCount++;
this.restockShop();
Expand Down

0 comments on commit e4cec27

Please sign in to comment.