Creates a new CompositeEntity.
The name or identifier for the entity.
The width of the entity's canvas.
The height of the entity's canvas.
The properties for the entity, including an array of blocks.
Optional
actionThe action function that defines the entity's behavior.
Optional
barOptional
beatOptional
durationOptional
hThe height of the entity's canvas.
The key or identifier for the entity.
Optional
propsThe properties for the entity.
Optional
sceneOptional
startOptional
tickOptional
transitionOptional
transitionOptional
wThe width of the entity's canvas.
Copies the entity's canvas to the target canvas and applies post-processors.
The target canvas to copy to.
The Sequence instance.
Finds a block within the entity by its key.
The key of the block to find.
The block if found, otherwise undefined.
Adds an event listener for when a bar is complete.
The Entity instance for chaining.
Adds an event listener for when a beat occurs.
The Entity instance for chaining.
Adds an event listener for when a tick occurs.
The Entity instance for chaining.
A CompositeEntity is a special type of Entity that can contain multiple Blocks. Each block can have its own update function and properties, allowing for modular and reusable components within an entity.
Typeparam
T - The type of ICompositeEntityProps for the entity.