so I was bored - Im not big on holidays. so dug out some old David Ahl games, and found a couple nice old ones (dukem was one). And As I started, I forgot how spaeghetti it was. OMG!
So gonna see if i can modernize some of that code and make it more structured - I used to think the goto x wasnt that bad. until I got into OOP (php), and wow, boing, boing boing..LOST!
Challenge? Take one of those monster codes and see if you can modernize it.
I was gonna start on this, and boy did I get lost, gonna need to see if i can print it. and draw a maze with a sharpie LOL
Yes this is, I think, the original Star Trader(I thought I was the only hermit that had a few of these mags laying around)
https://archive.computerhistory.org/resources/access/text/2017/09/102661095/102661095-05-v2-games-acc.pdfthis is a little better, but just as sloppy
https://www.atariarchives.org/bigcomputergames/showpage.php?page=57both these and other older programs get messy when it comes to accessing the data with lots of restores and loops, and all the unessasary goto's - some of the gosubs were old
so I wimped out, and redoing a modern style star trek (remember that? of course you do), cept this has the following changes
'//============================================================================
'//--- https://www.atariarchives.org/basicgames/showpage.php?page=157
'//---
'//--- MY CHANGES TO THE GAME INVOLVES BREAKING AWAY FROM THE TRADITIONAL
'//--- o Every quadrant has 1 - 5 enemmies -RNG
'//--- x Quadrant can only be cleared if the leader (randomly appears
'//--- after 10 enemies are killed (.02% chance of showing.
'//--- o There are now 5 - 20 planets that can be explored for materials
'//--- o A void (unnammed entity) is "nulifiying the universe
'//--- x To destroy it, a speacial machine is needed to be "crafted"
'//--- x These materials are found on planets surfaces
'//============================================================================
I COULD call it something else, but I will be using the main core of the super star trek code as a guide