I just noticed in your algorithm for digging tunnels, you allow digging a tunnel to the corner of a room:
This presents a problem because we don't yet have diagonal movement, so rooms with only entrance/exit tunnels on corners cannot be entered or left.
Some possible solutions:
- Fix the tunnel digging algorithm so that it never chooses a room corner as the start/end of a tunnel, or
- Update the movement action to allow diagonal movement. If you have a number pad on your keyboard, a good choice is 7 = northwest, 8 = north, and so on. If you don't have a number pad on your keyboard, give it some thought as to what key combinations are comfortable for a player. A common choice is WASD for north, west, south, east and then QEZC for the diagonal directions, but try out different possibilities and see what you think of them. (Remember that if you add a new kind of movement action, the monsters get to choose it too.)
- You can choose to do both solutions of course.
I just noticed in your algorithm for digging tunnels, you allow digging a tunnel to the corner of a room:
This presents a problem because we don't yet have diagonal movement, so rooms with only entrance/exit tunnels on corners cannot be entered or left.
Some possible solutions: