Create a debugger size for actually container render
group.A_debugger(PIXI);
A pixi.js
importer
Execute a multiple callback's if the target is collided with a group member.
Callbacks are called in order of position in the past array.
Callback return a PIXISprite
that was hit.
group.E_hitEffect(player_sprite, [
(enemy_sprite: Utils.PIXISprite) => {
console.log(enemy_sprite)
},
() => {
console.log('hello world');
},
]);
A target compare in hit a group sprites
A list for callback execute in a hit effect
Execute a callback target pertencent a max group area
group.E_inMaxArea(player_sprite, [
() => {
console.log('hello', player_sprite.__TARGET_IN_GROUP_MAX_AREA)
}
]);
A target compare in hit a group sprites
A list for callback execute in a hit effect
Execute a callback target pertencent a min group area
group.E_inMinArea(player_sprite, [
() => {
console.log('hello', player_sprite.__TARGET_IN_GROUP_MIN_AREA)
}
]);
A target compare in hit a group sprites
A list for callback execute in a hit effect
Insert a new sprite in a group
A new Factory.Sprite
insert in a group array
A PIXI.Container
for addChild
this
Delete stage element and remove in group
// ...
group.add(sprite);
setTimeout(() => {
group.delete(0);
}, 2000);
// ...
A key for search in group
A key for search Factory.Sprite
A Factory.Sprite
in group list
A area property
A PIXI.Container
A Factory.Sprite
array
Get names key
Array with a name for keys
Remove element in a track group events and actions (for delete render, use delete function instead).
// ...
group.add(sprite);
setTimeout(() => {
group.remove(0);
}, 2000);
// ...
A key for search in group
Set a new area property
Set a new PIXI.Container
A PIXI.Sprite
or a Factory.Sprite
array.
Options for create a group sprite.
Generated using TypeDoc
The default group generate for create function.
It is recommended to use the group using as keys to facilitate the handling of removing / adding new sprites in the group.