News on the go!
News:| Star Fight Is a Simple ZX81 Shoot ’Em up Game |
| Hardware: 11/26/17 - 19:14:07 Posted By: Steven |
Slow and stress free. Should you miss, the game will present your score—which is generally low. There is a note in the game to try to get to 100, but I doubt you’ll bother. This is a slow, low stress game. But, I do recommend you die at least once. Doing so will treat you to one of my nicer game over animations. Foundation for the future. First off, the two objects are represented by many string variables. The advantage of doing that is two fold. One, it is easy to see what the objects represent. Take a look at lines 20–90 of the listing to see what I mean. The second is that the print routines on lines 170 and 180 are short. Although it works as is, but I don’t recommend it. Using a variable is best when you are going to change the object later. I don’t in Star Fighter, so it would be more efficient, and faster, to print the objects. There is also a bug in line 180 that I expect I overlooked due to the array. The bug causes a flicker in the target image. The bug is obvious once you look for it, but I decided to leave it. A reminder that nothing is perfect. The rest of the game is straight forward. A loop to track the movement of the fighter. I capture what key is pressed, then act on that with a series of IF statements. Although simple, you’ll see that I used similar setups in many other games I wrote. A fun ending. That said, it is a nice touch. It is a brute force animation, with each movement a separate line of code. Yet, the effect works well and looks great. I did adjust a small loop used to delay the start of the next animation. Wanting to end the infinite loop as written, I replaced it with a key check. Once pressed, the game starts over. Ideas and tweaks. So you could play it again, I did tweak the ending as noted earlier. I also added a title screen after load to take the guesswork out of how to play. To improve readability, I made a slight change to the score routine to move it down a bit on the screen. Nothing too major. To be honest, I had to hold myself back from adding more to the program. In particular, I kept wanting to add in little animations of the star fighter. It is one of the better features of the game. Adding it to the start screen would have strengthened the games identity. Plus, it would have showcased the little fighter more. Alas, I resisted. Game over. Originally published at www.reids4fun.com on November 26, 2017. |
----------------------- All comments and posts are owned by the poster. [End News] | [Return Home] |