Road Hog Improved
Can you avoid the incoming cars in this ZX81 driving game?
What's this, another version of Road Hog? Yep. This is January’s Program converted to machine code using MCoder II. I was surprised how easy it was.
Although MCoder is an integer compiler and limits some BASIC commands, I only needed to change a few lines to get Road Hog to run. Since machine code is much faster, I removed the various
SLOW as they weren’t needed anymore. I also found that the cars were too fast, requiring a delay loop. The delay actually provided an opportunity to add an adaptive routine to slowly speed up the game with each successive car.
The speed resets each day, actually making use of that counter. This makes the game not only more challenging, but more fun overall. Not sure? Go on,
give it a try. You know you want to.