Since i have my player movement and some other things down i want to make a random dungeon.
I used the random dungeon object.
The grid the player moves on is 32x32.
So i made a 32x32 wall, floortile and door.
So far so good. But now it gets tricky.
1. The generated dungeon is never on the top left corner of the screen. It's always one 'gridstep' (32x32) down and right. I tried everything, i can't move the grid somewhere else.
2. The size of the dungeon i don't get it. When i make 8x8 shouldn't there be 8 walls? It's 9! I don't get it.
3. When i generate a very large dungeon the programm stops for ages and windows says that it's "not responding". What should i do?
I learned it all from Nivrams "Random Dungeon Generation Example" (forum says i'm not allowed to post link). But that doesnt help me any further, due to lack of documentation.
Then i tried to learn from "Dungeon Dash" (on nivrams page aswell). But there are so many variables, that i can't understand that at all. Are there any other Random Dungeon generation tutorials?