Friday 19 March 2021

Input Magazine Volume 1 Number 7 - Creating Levels of Difficulty (Maze)

Here's a type-in program from the Marshall Cavendish Input magazine series. I think this was around 1984 as it's only number 7 in the first volume.

I remember typing this into my C64 one Christmas whilst bored at home, long before I even had a disk drive or tape drive to save programs!

Here's the game all typed in for the Commodore 64... there were no typos in the C64 printed code that I noticed.  The keys are Z,X and P,L.  The player is the Pi symbol, the target is the asterisk. The game time uses Commodore's TI$ variable to read the time of day clock.  The level difficulty 1-4 (the whole point of that month's article) defines how long you have to reach the target before losing a life.

Here is a link to the .d64 file if you want to play the game yourself on a suitable emulator (VICE).

     input_vol1_no7.d64

There are also extra files on the disk that demonstrate how the clever BASIC algorithm generates the maze.  It's a very compact and well written few lines of code.  

 

I'd like to know to who wrote this code for the C64. They clearly understood Microsoft 6502 BASIC... well, certainly better than I did as a kid in the 80s.