Phaser Group Class
Description:creates a class that extends a Phaser Group
Example:class Monster extends Phaser.Group
{
constructor()
{
super(game);
}
}
Phaser Sprite Class
Description:creates a class that extends a Phaser Group
Example:class LetterBox extends Phaser.Sprite {
constructor() {
super(game, 0, 0, "letters", 0);
//add to stage right away
game.add.existing(this);
}
}