I have been working on this game for about a week, off and on. I have a complete, playable color ascii game. Last night I added some sound.
I need to add some items.
1 rem Add Splash screen with music
2 rem add a wrap around screen, both up-down and side-to-side
3 rem The screen should have 10 to the left and right
4 rem and 10 to the up and down. 60 wide and 40 tall.
5 rem -10 through 49 wide and -10 through 29 tall
8 rem when a ship is blown up random in a new one
9 rem add instructions page after Splash screen
Those are the first lines in the game. At first I would add rem(arks) in the game where to put some code. It is now getting too long to find the areas where I am needing to add code. I decided to put the reminders at the beginning of the code.
It is written in BASIC on the Hackaday 2018 SuperCon Badge. If there is another device that will use the basic interpreter you can use this code on that device.
<<12/17>> I get an error when attempting to assign a negative number to a variable, such as let a = -1. It occurs even after declaring the variable and then later attempting to assign a negative number to that variable.
This is the music I have come up with for the Evade game's splash screen. It might me a little bit too fast. It is quite repetitive. It comes in at 1313 bytes. I am going to have to pepper the code with some keyboard input checks to provide a break out of the splash screen during the playing of the music. Otherwise you have to listen to it until the song starts over. That is not too long, but I know how things can get. I want you to be able to get on with the game as soon as you would like.
One of the suggestions I received from @Ian Weber and my kid (his girlfriend) is that the ion cannon was not loading fast enough. Further testing was that the cannon is now done to 45 from 100. Line 3310 has the variable y as the timing for the cannon to recharge after firing.
Speeding up the cannon to fire caused a need for the enemy ship to seem a little slow in its erratic evasive movements. I adjusted that to 35, line 3330.
If you have played the game on your 2018 SuperCon Badge you should have noticed that the LED glows green to show you that the cannon is charged up. When you press the fire button (space) you will see that the green light goes out as the HUD shows in the upper right corner that the cannon is now recharging. If you make a hit on the enemy ship you might see that the LED flashes red for a brief period of time. Sometimes I don't even notice it as I am too focused on the display screen.
Still working on the music and the instructions page.
I've uploaded the current Evade game text file. It plays fine. I still have to add the music which I started composing last night. Figuring out how to break out of the music to get to the instructions page is proving to be a little challenge. It may take a bunch of gosub calls or make the song shorter and repeating.
I also discovered that I don't like the instructions page which is right after the the splash screen. I am thinking ASCII at the top would look OK.
Let me know what you think about this game? If you have hints about being able to break out of the music, I am all ears. :-D
I spent some time creating a nice looking splash screen. I may add to it a little bit. I tried using red as the lettering and it doesn't show up bright enough for me. Perhaps my batteries are getting low. Here is code for the splash screen. It says to << press space >> at the bottom of the screen. Well, that will only clear the screen and get you a prompt. Look at the code to see what I have done here. Copy it. Edit it for your own projects. If you have suggestions on how to make it smaller, I am all ears.