add extents function to instance for check object's base
add lua demo 2d platformer