Thanks. I had to make a few of the local function variables into global variables, but it's working.
I've fixed a line to make the sprite the correct width, given that it is always cut into 29 strips, where it sayssprinc += Sprite.RightI have changed it tosprinc += Sprite.GfxHndl.width / (14.5 * Sprite.Right);
I'm not 100% sure how the sprite rendering works, but I've noticed that it always starts from the left of the sprite, even when the left-most strips should be off screen. After looking at the sprite though, I've noticed that it doesn't need to be skewed like the walls do, so it should be possible to draw it in one command instead of in strips, but I need some sleep for work in the morning. We're making progress though, and this is definitely coming together.
On a sort-of related note, I was watching episode 1 of "8-bit Pwny Club" and their number 1 toilet in video games (the subject of the video) was from Duke Nukem. The rendering engine looks much like the one we're developing, only with textured floors and ceilings.[youtube]capDUGdxo2U[/youtube]