Close

Evade Theme

A project log for Evade - an ascii game for the Hackaday 2018 Badge

It is a space shooter game. Attempt to hit an enemy in space with your ion cannon. Trying to be reminiscent of Millennium Falcon's weaponry.

fidfid 01/03/2019 at 05:140 Comments

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.

10 rem Evade Theme
15 for i = 0 to 1
20 tune 55,0,0,600
30 tune 54,0,0,100
40 tune 55,0,0,100
50 tune 57,0,0,600
60 tune 55,0,0,100
70 tune 57,0,0,100
80 tune 59,0,0,200
90 tune 57,0,0,200
100 tune 55,0,0,200
110 tune 59,0,0,200
120 tune 57,0,0,200
130 tune 55,0,0,200
140 tune 54,0,0,200
150 tune 57,0,0,200
155 next i
160 tune 43,38,0,190
165 tune 0,0,0,10
170 tune 43,38,0,200
180 tune 0,0,0,200
190 tune 43,38,0,90
195 tune 0,0,0,10
200 tune 43,38,0,100
210 tune 43,38,0,190
215 tune 0,0,0,10
220 tune 43,38,0,200
230 tune 0,0,0,200
240 tune 43,38,0,90
245 tune 0,0,0,10
250 tune 43,38,0,100
260 tune 47,0,0,200
270 tune 45,0,0,200
280 tune 43,0,0,200
290 tune 43,38,0,90
295 tune 0,0,0,10
300 tune 43,38,0,90
305 tune 0,0,0,10
310 tune 43,38,0,190
315 tune 0,0,0,10
320 tune 43,38,0,200
330 tune 0,0,0,400
335 for i = 0 to 1
340 tune 43,38,55,190
345 tune 0,0,0,10
350 tune 43,38,55,200
360 tune 0,0,55,200
370 tune 43,38,54,100
380 tune 43,38,55,100
390 tune 43,38,57,200
400 tune 43,38,57,200
410 tune 0,0,57,200
420 tune 43,38,55,100
430 tune 43,38,57,100
440 tune 47,0,59,200
450 tune 45,0,57,200
460 tune 43,0,55,200
470 tune 43,38,59,90
475 tune 0,0,0,10
480 tune 43,38,59,100
490 tune 43,38,57,200
500 tune 43,38,55,200
510 tune 0,0,54,190
515 tune 0,0,0,10
520 tune 0,0,54,200
530 next i
700 goto 15

Copy it.  Load it into your 2018 Supercon Badge and run it.

Please let me know what you think.  I am going to add it to the main part of the program in a few days so it will blend in with the splash screen.  

The lines 160 through 330 are supposed to be like percussion.  The limitation of the tune command gave way to what you hear.  I did try other things and like this best.

As for the tempo, I am thinking about 1/4 slower or, perhaps 1/3 slower.  It was not what I figured it would be when I wrote it originally at twice the tempo.  That was way too fast.

Discussions