MichaelSinsbeck / platformer

A ninja platformer written in LÖVE
7 stars 0 forks source link

Drawing order within one layer #82

Closed michalove closed 10 years ago

michalove commented 10 years ago

Tiles are drawn from left to right and from top to bottom. When tiles overlap, this is a bit inconsistent. Have a look at a bridge tile starting at a grass tile. At the left end, the grass overlaps over the bridge and on the right side, the bridge overlaps the grass.

Same goes for different wall types (wood on the left of concrete looks different from wood on the right). I would like to have:

To change this, we don't need to add more image layers. Instead the quads in the spritebatch of the map could be added in a different order, depending on the tile image. It is hopefully enough to add some lines to the map:loadFromFile.

michalove commented 10 years ago

This was solved a while ago.