You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A group of components make up an Entity's functionality. Each Component serves a particular role for the entity. Together they make up the sum functionality of an entity by executing code when they receive messages and by sending messages of their own.
To begin we create a copy of the "examples/component-template.js" and name it what we want to name our new component. This file is a template for creating a component and includes comments to guide us through the process of creating a component.
Once we've named our component we need to add it to the configuration. We do that by simply including the component's JavaScript file in springroll.json in the "main" array of files.
Here's an example of three custom components added to the springroll.json file: