PurpleKingdomGames / indigo

An FP game engine for Scala.
https://indigoengine.io/
MIT License
648 stars 60 forks source link

Fixed #732: Content Layers support clone blanks #734

Closed davesmith00000 closed 7 months ago

davesmith00000 commented 7 months ago

Relates to https://github.com/PurpleKingdomGames/indigo/issues/732

This PR allows you to add CloneBlanks to Layers (cotent layers, specifically), where previously they had to be added to SceneUpdateFragments.

This makes the new nested layer system more powerful and useful, as you have less need to pull all the way back up to SUFs for visual requirements that need clones.

As discussed on the issue, I've decided against supporting SceneAudio here too, for now. It feels different to clones.

While I was here, I also tweaked the way applying magnification works because it was bothering me. There is now a distinction between applying magnification to a single content layer, vs a recursive add to a tree of layers.