Page 1 of 1

Random maze generation game

Posted: Sat May 30, 2020 2:40 am
by Bukster
I thought it would be interesting to try and write a machine code version of an algorithm I read years ago in a book of ZX81 basic programs. I've managed to get it going and I think the results look quite good so I've made a micro game around it.

This program has the title screen in Basic. You can select to have a maze escape game or just watch it make maze after maze as a screensaver. The real reason I did this was as the basis for a more complex random maze game. Any ideas as to what to do with it? I used to love Dungeon Master on my Atari ST. How about a similar ZX81 game.

Here's the game, see what you think.
Maze Master 250520.p
(6.16 KiB) Downloaded 154 times

Re: Random maze generation game

Posted: Sat May 30, 2020 7:26 pm
by zx81ultra
Looks great and very fast !

Re: Random maze generation game

Posted: Sat May 30, 2020 10:06 pm
by dr beep
I did a quick glimpse into the machinecode.

Did you write machinecode or did you crosscompile from C?

Re: Random maze generation game

Posted: Sat May 30, 2020 10:31 pm
by XavSnap
Great job !
But, something's wrong in VB81.
The screen saver seem ok,
Cap0039.jpg
Cap0039.jpg (8.4 KiB) Viewed 5696 times
but the game display hank on "K" characters.
Cap0040.jpg
Is it a special config ?

Re: Random maze generation game

Posted: Sun May 31, 2020 12:04 am
by Bukster
To answer some questions:

It's written in flat assembler, so machine code with a basic front end. The Basic actually gives you the maze generation routine and the address of the maze data, so it you want to use it for something, you've got what you need.

It runs find on Eightyone emulator set to 16k. It can't see how VB81 won't do it. It could always try turning it into an MP3 and trying it on my real ZX81. That's got to be the ultimate test.