I've been using a depth system that works quite nice.
The way it works, is it stores all the objects in the current room in a grid,
using each individual object's x and y value.
The grid is sorted each frame according to these values. When the player moves,
each frame, the entire...