Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(game, x, y, group, tileLayer) {
super(game, x, y, 'agent');
this.path = DEFAULT_PATH;
this.anchor.setTo(ANCHOR, ANCHOR);
this.tileLayer = tileLayer;
game.physics.enable(this, Physics.ARCADE);
game.world.bringToTop(this);
group.add(this);
}