Since we can hide behind a lamp our shape to hide from Papyrus we can assume that their world is in a 2D space as we see it since Papyrus would otherwise have seen us based on the angle he was looking at and Sans is aware of this since he instructs us to hide behind the lamp; Papyrus is dumb