Random maze generation game

General games-related topics
Post Reply
Bukster
Posts: 68
Joined: Wed Sep 12, 2018 9:44 am

Random maze generation game

Post 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
zx81ultra
Posts: 21
Joined: Thu Feb 13, 2020 4:19 am
Location: Bolivia

Re: Random maze generation game

Post by zx81ultra »

Looks great and very fast !
dr beep
Posts: 1303
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Random maze generation game

Post by dr beep »

I did a quick glimpse into the machinecode.

Did you write machinecode or did you crosscompile from C?
User avatar
XavSnap
Posts: 1135
Joined: Sat May 10, 2008 4:23 pm

Re: Random maze generation game

Post by XavSnap »

Great job !
But, something's wrong in VB81.
The screen saver seem ok,
Cap0039.jpg
Cap0039.jpg (8.4 KiB) Viewed 5692 times
but the game display hank on "K" characters.
Cap0040.jpg
Is it a special config ?
Last edited by XavSnap on Sun May 31, 2020 10:30 am, edited 1 time in total.
Xavier
Bukster
Posts: 68
Joined: Wed Sep 12, 2018 9:44 am

Re: Random maze generation game

Post 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.
Post Reply