alamboley/Citrus-Engine — pull request #221 by dufafa (2014-07-25 04:22:15+00:00)
Title: Fixes TiledMap layer ordering in Objectmakers (2D & starling) v2

Edit: New request since documentation was wrong on first request. Sorry for double request. This also bundles the prior commits to one.

Problem before:
The order of tile layers and object layers (internally called objectgroups) are only considered separately. Object layers will always be in the foreground. This causes problems if objects in an object layer have the view parameter set.
Example: A background object with an image as view will always cover all tiles.

This fix resolves this issue by taking the total order of tile and object layers into account.

As small bonus I also fixed the FIXME in Objectmaker2D (semantics issue).

Tests:
I tested the Objectmaker2D case in my own project and the starling case with the given example from the Citrus-Engine-Examples repository. The ordering of tiles and objects were as defined in the TiledMap editor. This resolved my object view problem.