What’s the correct way to work with Layers - how it was intended to be used?
My Current approach is this:
// 1. Created layers var layers = new Layers(camera); // 2. Created graphic utilities without mounting them var g = new h2d.Graphics(); var tileGroup = new h2d.TileGroup(tileImg); // 3. Adding objects to layers mounts them anyways. layers.add( g, 1); layers.add( tileGroup, 0);
There are many ways to use it with the same results. How was it intended to be integrated into a scene or how do you use it?
Am I using it incorrectly right now?