flambe icon indicating copy to clipboard operation
flambe copied to clipboard

zOrder Support

Open SquareLi opened this issue 11 years ago • 4 comments

Added zOrder support for entity.

SquareLi avatar Dec 06 '13 15:12 SquareLi

I would call it just 'order', this has nothing to do with a z-axis right?

markknol avatar Dec 06 '13 16:12 markknol

When two objects overlap, the object has higher z-order will be on the top.

SquareLi avatar Dec 06 '13 16:12 SquareLi

I think 'order' makes sense to me as well, because an entity doesn't necessarily even have a sprite attached to it.

volkipp avatar Dec 06 '13 18:12 volkipp

I'd honestly prefer "zOrder" to just "order", if i wanted to display something on top of something else, i'd look for a "z-something" property first, order may look like something more generic. But I'm not sure, looking at the code it seems that the order in which entities get updates is the same as they get rendered right? That is actually just a more generic "order" then

npretto avatar Dec 06 '13 23:12 npretto