Factory functions to create more complex, compound entitys
Test purpose
- Create a function that will take some parameters and, from that data, go away and create a complex layout; the function should return an object containing a reference to a Cell which displays the complex layout, alongside a kill function to remove all parts of the layout from the Scrawl-canvas ecosystem.
- In this case, we build a "ring" layout which takes entitys and lays them out in an overlapping ring
- Use the function to create assets to use in Picture entitys for the final scene.
- Animate the scene using a mix of delta and tween animations.
Annotated code