Mantra Examples
Loading code from document...
Entity

Set an absolute screen position for an entity.

Absolute Position

Entity

Clone an entity.

Clone Entity

Entity

Compose entities together.

Combine Entities

Entity

Create a new entity.

Create Entity

Entity

Create an entity using the Entity Builder.

Entity Builder

Entity

Set the time duration an entity will exist.

Entity Lifetime

Entity

Set the origin of an entity.

Entity Origin

Entity

Get an entity

Get Entity

Entity

Remove an entity

Remove Entity

Entity

Repeat an entity with an offset padding.

Repeat Entity

Entity

Update an entity.

Update Entity

Entity

Set a texture on Entity.

Set Texture

Entity

Sprite textures from a sprite sheet

Sprite Sheets

Entity

Update a texture on Entity.

Update Texture

Entity

Detect when a collision is active.

Collision Active

Entity

Detect when a collision ends.

Collision End

Entity

Detect when a collision starts.

Collision Start

Entity

Run a behavior based on entity state.

Entity State

Entity

Change the default game field of view.

Field of View

Entity

Group entities together.

Group Entities

Entity

Arrange entities by origin in a Scene.

Scene Layout

Entity

Run code after a collision is active.

after
collisionActive

Entity

Run code after a collision ends.

after
collisionEnd

Entity

Run code after a collision starts.

after
collisionStart

Entity

Run code after an entity is created.

after
createEntity

Entity

Run code after an entity is removed.

after
removeEntity

Entity

Run code after an entity is updated.

after
updateEntity

Entity

Run code before a collision is active.

before
collisionActive

Entity

Run code before a collision ends.

before
collisionEnd

Entity

Run code before a collision starts.

before
collisionStart

Entity

Run code before an entity is created.

before
createEntity

Entity

Run code before an entity is removed.

before
removeEntity

Entity

Run code before an entity is updated.

before
updateEntity

Entity

Create HTML entity attributes.

Entity Attributes

Entity

Create HTML entity containers.

Entity Containers

Entity

Create HTML entities.

Entity HTML

Entity

Create HTML entity metadata.

Entity Metadata

$entity system components entities objects instances prefabs instances instances instances