omenking/swap-n-pop

All components on stage should have a z-index, be in one group for easy ordering

Skytrias opened this issue · 2 comments

or generally implement z indexing as a standard.

Z-Indexing implies that there is a strict order of what is further in the foreground or background. Otherwhise sprites will be rendered after they get their render callback called.

So what needs to happen for this task is as follows
Lots of components are relative to other components and are sometimes .add to the sprite of other components.

More or less everything should be attached to a single group and then properties on the components should indicate their z-indexing.

There may be an intelligent way to do this instead of just assigning them single values.

I was on the train yesterday and found this to be easy and think I wont have to change the relative positing just put them in a group