Sludge progress update:
The z-buffer now (almost) works! All my tests work great except the Interview. I suspect it may be due to the high number of layers used there, but I don’t know. (If I had known, the bug would have been fixed already.)
Edit: Now I know, and now it’s fixed!
I’ve also fixed the bug that was keeping some music silent, so all sound should now work properly.