Scene
In PrimeEngine a Scene is a container for both entities and
systems. The Scene handles the starting and updating of the
systems. It also contains a name property for identification.
Example
A simple Scene with the name Main containing a renderable
rectangle Entity and the systems
CanvasRenderingSystem and RotatorSystem:
const scene = new Scene(
"Main",
[rectangle],
[new CanvasRenderingSystem(canvas), new RotatorSystem()]
);