How to simulate 3D with sprite scaling?

NES didn’t have 3D at all, yet some nes games (Sky Destroyer comes to mind) were in 3D due to sprite scaling (not actual scaling, but you get the gist). How to simulate 3D in similar way in GD?

It’s actually 2.5D show one or more object sides for example block