Skull Shot

Author(s): Gene G. Buza
Publication: Synchro-Sette
Pub Details: Synchro-Sette v2 n10 (Volume 2, Issue 10)
Date: November 1983
Pages: 7
Skull Shot title art, skull and crossbones
Skull Shot title art, skull and crossbones

Here is a neat little game for the TS-2068. It shows off some of the areas of the 2068’s programming capabilities, bit-graphics mapping, HIRES (high resolution) moving graphics, screen coordinate determination and sound generation.

It is an arcade-type game where the user tries to shoot the skulls that pass over in the least amount of shots. There are 22 skulls in two rows, moving in opposite directions.

Lines 10 to 90 generate the bit-graphic character skull. The skulls you see in the program listing in line 90 only appear after the program has run. When you get to that line, get the cursor in the graphics mode (SHIFT 9). Then enter SHIFT “E” in place of each of the skulls you see and blank spaces for the rest of the string. The skulls will become part of the listing and take the place of the “E”s.

The 300 subroutine plots the projectile with line #305 determining whether a screen coordinate is being occupied by a portion of the skull, with the POINT function.

The 1000 sub-routine makes a gunshot noise which occurs when you hit the space bar. A projectile will move from the lower left-hand corner to the center of the screen. If a skull is hit, sub-routine 2000 will produce an explosion noise.

When all the skulls are gone, your score will be displayed.

Examine the binary code in lines 10 to 80 and see if you can see the picture of the skull. This game can be improved upon with colors and more moving rows of skulls or other graphics characters you may want to design such as a graphic cannon. Another good project is to program the skulls to keep moving as the projectile is in flight or to replace them with tombstones when they are hit – a good base game program to build on.

   5 LET sk=0: LET s=0: DIM c$(32)
10 POKE USR "e",BIN 00111100
20 POKE USR "e"+1,BIN 01000010
30 POKE USR "e"+2,BIN 10100101
40 POKE USR "e"+3,BIN 10011001
50 POKE USR "e"+4,BIN 01000010
60 POKE USR "e"+5,BIN 01011010
70 POKE USR "e"+6,BIN 00100100
80 POKE USR "e"+7,BIN 00011000
90 LET a$="☠ ☠ ☠ ☠ ☠ ☠ ☠ ☠ ☠ ☠ ☠ "
95 LET d$=a$
100 PRINT AT 10,0;a$;AT 7,0;d$;AT 0,0;"SHOTS USED = ";s;AT 1,0;"SKULLS SHOT = ";sk: IF a$=c$ AND d$=c$ THEN GO TO 5000
110 LET b$=INKEY$
120 IF b$<>"" THEN GO SUB 300
200 LET a$=a$(2 TO 32)+a$(1): LET d$=d$(32)+d$( TO 31)
210 GO TO 100
300 PRINT AT 21,0;" ": GO SUB 1000: FOR x=1 TO 180
305 IF POINT (x,x/1.4545)=1 THEN GO TO 400
310 PLOT x,x/1.4545
320 INK 7: PLOT x,x/1.4545: INK 0
340 NEXT x
350 LET s=s+1
360 BEEP .5,-10: BEEP .5,-20: BEEP 1,-30
380 CLS
390 RETURN
400 GO SUB 2000
900 RETURN
1000 SOUND 6,15;7,7;8,16;9,16;10,16;12,16;13,0
1010 RETURN
2000 SOUND 6,6;7,7;8,16;9,16;10,16;12,56;13,8
2010 FOR n=1 TO 250: NEXT n
2020 SOUND 8,0;9,0;10,0
2030 CLS
2040 IF x>127 AND x<138 THEN LET a$(17 TO 18)=" "
2050 IF x>161 AND x<174 THEN LET d$(21 TO 22)=" "
2060 LET sk=sk+1: LET s=s+1
2090 RETURN
5000 CLS : PRINT ,,,,"You took ";s;" shots."
5010 PRINT ,,"Your score is ";INT (2200/s)
5020 PRINT ,,"press ENTER for a new game [illegible]
5040 PAUSE 40000
5050 CLS : RUN
9999 SAVE "skull-shot" LINE 5

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.