Skip to content
On this page

gameObjects and components

gameObject

A jsngin game is made up of gameObjects. gameObjects are can represent any entity in the game, be it a prop, the environment, a light or the character. Even abstract entities, like a global state controller can be represented with gameObjects. The game level itself is a gameObject.

Each gameObject can have children and components attached to it. gameObject Children are themselves gameObjects.

component

components are responsible for the behaviour of a gameObject eg a gameObject with a light component on it will illuminate its surroundings.

Components reffer to ts/js files containing game logic.