I'm following the 2D Roguelike tutorial, which can be seen here. I don't want to get fancy, just follow the existing steps.
I've reached the part where all it's supposed to do is draw the playfield. But it looks like this:
and I don't know why.
Some of the floor tiles are appearing beyod the outer wall, and others are missing (or maybe they're stacked on top of other tiles).
(EDIT: I discovered that the "missing" tiles are because I had the sprites in the wrong layer, and fixed them. I still have several appearing to the left of the outer wall, though.)
I tried to debug it in Visual Studio. The plan was to step through it line by line to see how the tiles are put down, but the debugger doesn't show the playfield until the whole thing is complete.