Alright so the errors were my own fault. I've corrected them but the game seems to freeze upon reading
.Sprite0_testtwo
bit $2002
bvc .Sprite0_testtwo
I can't move the screen, the level loads but the first tile in the metatile isn't displayed, and random garbage keeps going into the stack.
I re-wrote the engine so that it was formatted in a way I like. I've thoroughly compared my code to the original code several times and I didn't find any mistakes on my part so I'm either doing something wrong with the sprite0hit, or the offscreen_buffer_tables.i needs to be changed. If someone could help me, I'd greatly appreciate it.