PurpleKingdomGames / indigo

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

Consider: Allow Layers to accept clone blanks and audio #732

Closed davesmith00000 closed 5 months ago

davesmith00000 commented 5 months ago

This would effectively make them as powerful as SceneUpdateFragments, which means you don't need to return SUF's as often.

davesmith00000 commented 5 months ago

My thoughts this morning are that I think clones are fine, but audio maybe isn't.

Layers are all about building visible stuff and organising it appropriately, and audio doesn't quite fit that category. Audio also has a different integration into the game loop that visible elements, and requires slightly more careful management due to strict limits on the number of playable tracks and so on. So I think for now, leaving audio alone and suggesting that you carry on managing that with events makes the most sense.