Hi, I’m wanting to extend the Weapon class from 16patsle’s great phaser3-weapon-plugin, but am not sure how to reference the original Weapon class. I’ve tried:
import ‘phaser’;
import WeaponPlugin from ‘phaser3-weapon-plugin’;
export default class Weapon2 extends WeaponPlugin.Weapon {
constructor(scene) {super(scene);
}
}
I’m assuming its the WeaponPlugin.Weapon reference that is incorrect but no sure. Can anyone see an obvious issue?
Many thanks, Gordon