Draws one row of a layer, so sprites can go in among the tiles. Rows run from the back to the front on every shape of map. A layer that isn't made of tiles (objects or an image) draws with row 0. Takes map (The map's handle), layer (The layer's number, from tmAddLayer or tmGetLayer), row (The row, from 0 at the back. tmRowCount says how many there are). Returns nothing.
map
Int
layer
Int
row
Int
For row:Int = 0 To tmRowCount(map) - 1
tmDrawLayerRow(map, ground, row)
If tmRowAt(map, footX, footY) = row Then b2dDrawImage(player, sx, sy)
Next