
I’ve got movement and exploration working now. I don’t like the memory usage right now but at least I’ve got something in working order.
Blue is unexplored, the space background is explored, the green is where you are, and the yellow outline is where you can go immediately.
So I’m watching a movie staring the Beatles on A Channel. What the hell.
Fixed the infinite loop! Hah.
Random maps now generate in under 3 seconds.
01-02-03-04-05
| | |
06-07-08-09-10
| | | |
11-12 13-14-15
| | | | |
16-17-18 19-20
| | |
21-22-23-24-25
Read more…

So I got the random map algorithm working now. Not smooth yet but it generates perfect mazes at least.
I’m still working out how to save the exits. It’s either going into one field or separated into up,down,etc or by north,south,etc.

Writing an algorithm to make a random maze is pretty annoying. Especially when you want the maze to come out a certain way. There’s a lot of backtracing involved.
To give it a more open feel, I’ve decided to overlay two separate mazes on top of each other. Let’s hope this works.

I got the algorithm working! We now have plot course. Combat and trading are in the works next.