braingdx
braingdx copied to clipboard
Only sort by z-index when any game object has moved accordingly
When objects do not change the condition which requires a z-index change, don't move. So check if z-index has changed and only then sort.