Close

Splash Screen drawn

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 12/22/2018 at 01:350 Comments

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.

5 cursor 0
10 cls
20 color 1,0
30 for j = 0 to 19
36 setxy 3,j
40 for k = 0 to 4
50 chr 176
60 next k
80 setxy 8,j
90 for k = 0 to 4
100 chr 177
110 next k
130 for k = 0 to 4
140 chr 178
150 next k
170 for k = 0 to 4
180 chr 219
190 next k
200 for k = 0 to 4
210 chr 178
220 next k
230 for k = 0 to 4
240 chr 177
250 next k
260 for k = 0 to 4
270 chr 176
280 next k
290 next j
295 color 3,1
300 setxy 1,1
310 chr 201
320 for i = 1 to 37
330 chr 205
330 next i
333 chr 187
335 for i = 2 to 10
340 setxy 1,i
350 chr 186
360 setxy 39,i
370 chr 186
380 next i
390 setxy 1,11
400 chr 200
410 for i = 1 to 37
420 chr 205
430 next i
440 chr 188
490 color 14,0
495 rem E
500 setxy 6,3
510 chr 201
520 chr 205
530 chr 205
540 chr 205
550 setxy 6,4
560 chr 186
570 setxy 6,5
580 chr 204
585 chr 205
590 setxy 6,6
600 chr 186
602 setxy 6,7
603 chr 186
610 setxy 6,8
620 chr 186
630 setxy 6,9
640 chr 200
650 chr 205
660 chr 205
670 chr 205
680 chr 205
685 rem v
690 setxy 12,5
700 chr 186
710 setxy 16,5
720 chr 186
730 setxy 12,6
740 chr 186
750 setxy 16,6
760 chr 186
770 setxy 12,7
780 chr 200
785 chr 187
790 setxy 15,7
800 chr 201
805 chr 188
810 setxy 13,8
820 chr 200
830 chr 203
840 chr 188
850 setxy 14,9
860 chr 186
865 rem a
870 setxy 19,5
880 chr 205
890 chr 205
900 chr 205
910 chr 187
920 setxy 22,6
930 chr 186
940 setxy 18,7
950 chr 201
960 chr 205
970 chr 205
975 chr 205
980 chr 185
990 setxy 18,8
1000 chr 186
1010 setxy 22,8
1020 chr 186
1030 setxy 18,9
1040 chr 200
1050 chr 205
1060 chr 205
1070 chr 205
1080 chr 188
1085 rem d
1090 setxy 28,3
1100 chr 186
1110 setxy 28,4
1120 chr 186
1130 setxy 28,5
1140 chr 186
1150 setxy 24,6
1160 chr 201
1170 chr 205
1180 chr 205
1190 chr 205
1200 chr 185
1210 setxy 24,7
1220 chr 186
1230 setxy 28,7
1240 chr 186
1242 setxy 24,8
1243 chr 186
1244 setxy 28,8
1245 chr 186
1250 setxy 24,9
1260 chr 200
1270 chr 205
1280 chr 205
1290 chr 205
1300 chr 188
1310 rem e
1320 setxy 30,5
1330 chr 201
1340 chr 205
1350 chr 205
1360 chr 205
1370 chr 187
1380 setxy 30,6
1390 chr 186
1400 setxy 34,6
1410 chr 186
1420 setxy 30,7
1430 chr 204
1440 chr 205
1450 chr 205
1460 chr 205
1470 chr 188
1480 setxy 30,8
1490 chr 186
1500 setxy 30,9
1510 chr 200
1520 chr 205
1530 chr 205
1540 chr 205
1550 chr 205
1590 setxy 11,19
1595 print "<< Press space >>"
1600 i = kin 0
1610 if i = 32 then goto 1630
1620 goto 1600
1630 cursor 1
1640 cls
1650 end

 I just tested, and I am not absolutely sure, but, I can put all of the chr 205 (or whatever number) on one line.  That would be like: 10 chr 204 chr 205 chr 205 chr 205 chr 205 chr 188.  I really like that for making the code not be so lengthly.  It also crunches the line numbers.  :-D

Discussions