Skip to content

Commit

Permalink
feat: tint for pvp
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-1806 committed Feb 12, 2024
1 parent 1f570f4 commit 2ceede7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/renderer/src/scenes/TileMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ export class TileMap extends Phaser.Scene {
direction,
);
troop.setDepth(troop.y);
troop.setTint(actorType === 'D' ? 0xff3333 : 0x7094db);
actorType === 'D'
? this.opponent_troops.set(id, this.add.existing(troop))
: this.troops.set(id, this.add.existing(troop));
Expand Down

0 comments on commit 2ceede7

Please sign in to comment.