Alinhamento da grade de phaser
const group = this.add.group({
key: 'diamonds',
frame: [ 0, 1, 2, 3, 4 ],
frameQuantity: 20
});
Phaser.Actions.GridAlign(group.getChildren(), {
width: 10,
height: 10,
cellWidth: 32,
cellHeight: 32,
x: 100,
y: 100
});
}
Himanshu Jangid