Thriller · the program listingsPictures, tunes and sounds
The INCLUDE files: every character and player shape as rows of bytes, the three tunes as lists of notes, the front screen's music and the pieces that open a game and greet a win as tables of sound-chip settings, and the digitized laugh. The shapes and tunes are written out by small Python programs from drawings made of letters, so nobody typed these numbers by hand.
Never compiled. These listings were written as the design of the game, in Action!, within
what a 48K Atari 800 of 1984 could do. They have not been through the Action! cartridge or run on an Atari. What plays on
the game page is a line-for-line translation into JavaScript, made by hand, PROC for PROC. Expect small
mistakes a compiler would have caught, and note the parts marked NOT WRITTEN: loading one program from another off the disk.
SHAPES.ACT · 171 lines · the file itself
1; SHAPES.ACT - the pictures for THRILLER, screen 2.2; Made by tools/make_shapes.py from the drawings in that file; change them there.34; The character set: these go in at character 65 (the ROM's heart stays at 64).5; ANTIC mode 4: four pixels a character, two bits each (01, 10, 11 = playfield 0, 1, 2).6BYTE ARRAY cset=[7 ; 65 star8 0 0 0 8 0 0 0 09 ; 66 grass10 0 0 0 0 0 64 68 8411 ; 67 fence12 32 32 168 32 170 32 32 17013 ; 68-71 stone14 10 42 170 171 175 171 171 17015 160 168 171 171 235 171 171 17116 170 190 170 191 170 170 106 8617 171 251 171 187 171 171 171 14918 ; 72-75 plot19 0 12 48 0 204 3 48 020 0 12 192 195 0 12 0 20421 12 192 3 48 0 12 64 8122 0 48 3 48 192 12 193 523 ; 76-79 moon24 2 10 42 42 170 168 168 16825 160 168 128 0 0 0 0 026 168 168 170 42 42 10 2 027 0 0 0 0 128 168 160 028 ; 80-85 ghoul, step 129 1 5 4 5 20 5 9 4230 80 84 68 84 16 64 0 14931 42 42 42 42 42 38 34 4032 165 128 149 165 128 128 128 12833 15 15 15 15 60 60 20 8434 192 192 240 60 60 15 5 535 ; 86-91 ghoul, step 236 0 1 5 4 5 20 5 937 0 80 84 68 84 16 64 038 42 42 42 42 42 38 34 4039 149 165 128 149 165 128 128 12840 15 15 15 15 3 3 1 541 192 192 192 192 240 240 64 8042 ; 92-97 ghoul dancing 143 64 69 132 133 161 42 10 1044 1 81 18 82 74 168 160 9645 9 10 8 10 8 15 15 1546 160 160 160 32 160 240 240 6047 15 60 60 60 60 20 84 048 60 60 15 15 15 5 5 049 ; 98-103 ghoul dancing 250 0 5 4 5 1 42 170 13851 1 81 18 82 74 168 160 9652 137 74 72 10 8 15 15 6053 160 160 160 32 160 240 240 24054 60 60 240 240 240 80 80 055 240 60 60 60 60 20 21 056 ; 104-107 cross57 2 2 2 42 42 14 2 258 128 176 176 168 171 191 176 17659 2 2 2 2 10 42 106 8660 176 176 176 176 160 171 171 14961 ; 108-111 leaning stone62 0 2 10 10 10 10 42 4263 168 170 170 186 254 187 171 17164 47 42 174 170 170 170 106 8665 187 172 252 172 172 176 172 149]6667; The hero, facing right. Each picture is 26 bytes for player 0 (his red suit), 26 for68; player 1 (skin) and 26 for player 2 (hair and shoes). His socks are in both69; player 0 and player 1: with bit 5 of GPRIOR set the two colours are ORed, which makes a pale one.70BYTE ARRAY hero=[71 ; walking 172 0 0 0 0 0 0 0 0 0 255 219 102 12673 124 60 0 60 60 54 102 99 99 99 0 0 074 0 0 0 0 0 14 30 28 24 0 0 0 175 129 128 0 0 0 0 0 0 0 99 0 0 076 0 0 60 126 254 240 224 96 0 0 36 24 077 0 0 60 0 0 0 0 0 0 0 231 0 078 ; walking 279 0 0 0 0 0 0 0 0 0 255 219 102 12680 124 60 0 60 60 28 28 28 28 24 0 0 081 0 0 0 0 0 14 30 28 24 0 0 0 12882 130 2 0 0 0 0 0 0 0 24 0 0 083 0 0 60 126 254 240 224 96 0 0 36 24 084 0 0 60 0 0 0 0 0 0 0 60 0 085 ; dancing 186 0 0 0 0 1 1 1 1 3 126 90 230 12487 60 60 0 60 124 110 102 198 198 198 0 0 088 0 0 1 1 0 60 60 60 24 128 128 0 089 0 0 0 0 0 0 0 0 0 198 0 0 090 0 0 60 126 126 66 64 0 0 0 36 24 091 0 0 60 0 0 0 0 0 0 0 199 0 092 ; dancing 293 0 0 0 0 128 128 128 128 192 126 90 103 6294 60 60 0 60 62 118 102 99 99 99 0 0 095 0 0 128 128 0 60 60 60 24 1 1 0 096 0 0 0 0 0 0 0 0 0 99 0 0 097 0 0 60 126 126 66 2 0 0 0 36 24 098 0 0 60 0 0 0 0 0 0 0 227 0 099 ; claws out100 0 0 0 0 0 0 0 0 0 254 218 102 126101 60 60 0 60 124 110 102 198 198 198 0 0 0102 0 0 0 0 0 14 30 29 27 0 1 1 0103 0 0 0 0 0 0 0 0 0 198 0 0 0104 0 0 60 126 254 240 224 96 0 0 36 24 0105 0 0 60 0 0 0 0 0 0 0 199 0 0106 ; crouch107 0 0 0 0 0 0 0 0 0 0 195 255 219108 165 189 129 126 231 195 195 195 195 195 0 0 0109 0 0 0 0 0 0 0 0 60 60 24 0 0110 0 0 0 129 0 0 0 0 0 195 0 0 0111 0 0 0 0 0 60 126 126 66 0 0 0 36112 24 0 60 0 0 0 0 0 0 0 195 0 0113 ; spin114 0 0 0 0 0 0 0 0 0 126 255 255 189115 60 60 0 60 60 28 24 24 60 60 0 0 0116 0 0 0 0 0 0 6 4 24 0 0 0 0117 129 0 0 0 0 0 0 0 0 60 0 0 0118 0 0 60 126 126 126 120 56 0 0 0 0 0119 0 0 60 0 0 0 0 0 0 0 102 0 0120 ; moonwalk 1121 0 0 0 0 0 0 0 0 0 255 219 102 126122 126 60 0 60 124 110 102 198 195 131 0 0 0123 0 0 0 0 0 14 30 28 24 0 0 0 0124 129 129 0 0 0 0 0 0 0 131 0 0 0125 0 0 60 126 254 240 224 96 0 0 36 24 0126 0 0 60 0 0 0 0 0 0 0 135 0 0127 ; moonwalk 2128 0 0 0 0 0 0 0 0 0 255 219 102 126129 126 60 0 60 60 60 62 54 54 38 0 0 0130 0 0 0 0 0 14 30 28 24 0 0 0 0131 129 129 0 0 0 0 0 0 0 38 0 0 0132 0 0 60 126 254 240 224 96 0 0 36 24 0133 0 0 60 0 0 0 0 0 0 0 46 0 0134 ; moonwalk 3135 0 0 0 0 0 0 0 0 0 255 219 102 126136 126 60 0 60 60 62 54 54 50 98 0 0 0137 0 0 0 0 0 14 30 28 24 0 0 0 0138 129 129 0 0 0 0 0 0 0 98 0 0 0139 0 0 60 126 254 240 224 96 0 0 36 24 0140 0 0 60 0 0 0 0 0 0 0 226 0 0141 ; moonwalk 4142 0 0 0 0 0 0 0 0 0 255 219 102 126143 126 60 0 60 124 118 230 198 194 194 0 0 0144 0 0 0 0 0 14 30 28 24 0 0 0 0145 129 129 0 0 0 0 0 0 0 194 0 0 0146 0 0 60 126 254 240 224 96 0 0 36 24 0147 0 0 60 0 0 0 0 0 0 0 226 0 0]148149; The girl, facing right: 26 bytes for player 3 (her dress), then 26 for the missiles (her skin,150; and every other pixel of her hair, which makes it dark): M3 M2 M1 M0 stand side by side, so the byte is drawn just like a player's.151BYTE ARRAY girl=[152 ; walking 1153 0 0 0 0 0 0 0 0 30 126 126 124 60154 60 126 126 255 255 0 0 0 0 0 99 0 0155 0 0 40 84 174 95 174 86 32 0 1 129 128156 0 0 0 0 0 54 54 51 99 99 0 0 0157 ; walking 2158 0 0 0 0 0 0 0 0 30 126 126 124 60159 60 126 126 255 255 0 0 0 0 0 60 0 0160 0 0 40 84 174 95 174 86 32 0 128 130 2161 0 0 0 0 0 28 28 28 28 28 0 0 0162 ; hands to her cheeks163 0 0 0 0 0 0 0 0 66 102 126 126 60164 60 126 126 255 255 0 0 0 0 0 54 0 0165 0 0 40 84 186 125 254 103 60 24 0 0 0166 0 0 0 0 0 54 54 54 54 54 0 0 0167 ; arms out168 0 0 0 0 0 0 0 0 30 126 120 124 120169 60 126 126 255 255 0 0 0 0 0 54 0 0170 0 0 40 84 174 95 174 86 32 0 7 0 7171 0 0 0 0 0 54 54 54 54 54 0 0 0]
SHAPES1.ACT · 100 lines · the file itself
1; SHAPES1.ACT - the pictures for THRILLER, screen 1.2; Made by tools/make_shapes1.py from the drawings in that file; change them there.34; The character set: these go in at character 65 (the ROM's heart stays at 64).5BYTE ARRAY wset=[6 ; 65 star7 0 0 0 8 0 0 0 08 ; 66 grass9 0 0 0 0 0 64 68 8410 ; 67-70 moon11 10 42 170 168 170 170 170 17012 160 168 170 170 170 162 170 17013 162 170 170 170 42 10 0 014 170 170 138 170 168 160 0 015 ; 71-76 cloud16 0 5 21 85 85 85 85 8517 20 85 85 85 85 85 85 8518 20 85 85 85 85 85 85 8519 85 85 85 85 21 5 1 020 85 85 85 85 85 85 69 021 85 85 85 85 85 84 80 022 ; 77-80 skyline23 3 15 15 63 63 255 255 25524 0 192 195 243 255 255 255 25525 3 15 15 207 255 255 255 25526 0 195 207 255 255 255 255 25527 ; 81-86 tree top28 1 21 85 85 21 85 85 8529 81 85 85 85 85 85 85 8530 64 80 84 85 85 85 84 8531 85 21 87 20 4 0 0 032 85 69 29 205 63 63 60 6033 85 85 20 208 16 0 0 034 ; 87 trunk35 60 60 60 60 60 60 63 24336 ; 88-89 log37 12 3 63 255 195 255 63 038 0 0 232 238 238 234 232 039 ; 90-91 bramble40 32 5 16 72 65 20 132 1641 8 16 70 65 68 22 65 2042 ; 92 stump43 0 0 40 235 255 255 255 20744 ; 93 roof, left45 3 3 15 15 63 63 255 25546 ; 94 roof47 255 207 255 255 252 255 255 25548 ; 95 roof, right49 192 192 240 240 252 252 255 25550 ; 96 wall51 170 168 170 138 170 168 170 13852 ; 97 window53 128 140 140 128 140 140 128 17054 ; 98 door, top55 128 143 15 63 60 63 63 6356 ; 99 door, bottom57 63 63 60 63 63 60 63 6358 ; 100-101 door, right half59 2 242 240 252 60 252 252 25260 252 252 44 252 252 60 252 25261 ; 102-103 wide window62 128 143 143 128 143 143 128 17063 0 60 60 0 60 60 0 17064 ; 104 chimney65 0 0 170 40 40 32 40 4066 ; 105-110 bare tree67 12 12 195 51 15 3 192 6068 0 48 51 51 60 60 255 6069 192 195 12 48 192 195 12 24070 3 0 0 0 0 0 0 071 60 255 60 60 60 60 60 6072 192 0 0 0 0 0 0 073 ; 111-112 glove74 34 34 42 42 42 10 10 1075 32 34 162 170 168 160 160 160]7677; The werewolf, running to the right. Each picture is 26 bytes for player 0 (the rags of78; his suit), 26 for player 1 (fur) and 26 for player 2 (eyes, nose and claws).79BYTE ARRAY wolf=[80 ; running 181 0 0 0 0 0 8 0 10 0 124 252 252 12482 60 60 52 0 0 0 0 0 0 0 0 0 083 0 0 36 54 62 127 126 126 60 0 3 0 13184 128 192 8 60 54 102 99 195 193 0 0 0 085 0 0 0 0 0 0 1 0 0 0 0 1 086 1 0 0 0 0 0 0 0 0 195 0 0 087 ; running 288 0 0 0 0 0 8 0 10 0 124 252 252 12489 60 60 44 0 0 0 0 0 0 0 0 0 090 0 0 36 54 62 127 126 126 60 0 2 2 291 194 128 16 60 60 28 28 56 56 0 0 0 092 0 0 0 0 0 0 1 0 0 0 0 1 093 1 0 0 0 0 0 0 0 0 56 0 0 094 ; leaping95 0 0 0 0 0 0 8 0 10 124 252 252 25296 124 104 0 0 0 0 0 0 0 0 0 0 097 0 0 2 38 54 62 127 126 126 2 2 0 098 128 144 120 240 224 192 0 0 0 0 0 0 099 0 0 1 1 0 0 0 1 0 0 0 0 0100 0 0 0 0 0 0 192 0 0 0 0 0 0]
SHAPES3.ACT · 67 lines · the file itself
1; SHAPES3.ACT - the pictures for THRILLER, screen 3.2; Made by tools/make_shapes3.py from the drawings in that file; change them there.34; The character set: these go in at character 65 (the ROM's heart stays at 64).5BYTE ARRAY mset=[6 ; 65 wall7 170 138 170 168 170 138 170 1688 ; 66 skirting board9 170 170 170 0 255 255 255 010 ; 67 floor11 0 0 0 0 0 0 0 25212 ; 68 picture13 255 215 215 215 215 215 255 17014 ; 69-74 table15 0 0 63 255 255 191 42 6016 0 0 255 255 255 255 170 017 0 0 252 255 255 254 168 6018 60 60 60 60 60 60 60 019 0 0 0 0 0 0 0 020 60 60 60 60 60 60 60 021 ; 75-80 bookcase22 255 192 210 218 218 255 192 19723 255 3 83 87 87 255 3 3524 229 229 255 192 216 217 217 25525 103 103 255 3 19 27 91 25526 192 200 218 218 255 255 192 19227 3 83 91 91 255 255 3 328 ; 81-84 armchair29 15 63 51 63 51 63 255 20730 240 252 204 252 204 252 255 24331 207 192 243 255 255 63 32 032 243 3 243 255 255 252 8 033 ; 85 eyes34 0 0 0 204 204 0 0 035 ; 86-91 ghoul, step 136 1 5 4 5 20 5 9 4237 80 84 68 84 16 64 0 14938 42 42 42 42 42 38 34 4039 165 128 149 165 128 128 128 12840 15 15 15 15 60 60 20 8441 192 192 240 60 60 15 5 542 ; 92-97 ghoul, step 243 0 1 5 4 5 20 5 944 0 80 84 68 84 16 64 045 42 42 42 42 42 38 34 4046 149 165 128 149 165 128 128 12847 15 15 15 15 3 3 1 548 192 192 192 192 240 240 64 8049 ; these go in at character 110 (98-109 are the ghouls walking left, made by the game)50 ; 110-113 portrait51 255 192 194 202 232 236 232 22652 255 3 131 163 43 59 43 13953 234 234 202 202 234 234 255 17054 171 171 163 163 171 171 255 17055 ; 114-119 clock56 3 15 63 58 56 56 58 6357 192 240 252 172 172 44 172 25258 15 63 48 50 50 50 50 5059 240 252 12 12 12 12 12 14060 58 50 48 63 63 63 255 25561 172 140 12 252 252 252 255 25562 ; 120 glow in a doorway63 192 12 192 12 192 12 192 1264 ; 121 the bottle, for the text line65 56 16 56 124 108 92 116 12466 ; 122 a spark of his strength, for the text line67 0 24 60 126 126 60 24 0]
TITLE.ACT · 108 lines · the file itself
1; TITLE.ACT - the pictures for THRILLER's front screen.2; Made by tools/make_title.py from the three screens' own drawings; change them there.34; The character set: these go in at character 65.5BYTE ARRAY tset=[6 ; 65 star7 0 0 0 8 0 0 0 08 ; 66 grass9 0 0 0 0 0 64 68 8410 ; 67-70 moon11 10 42 170 168 170 170 170 17012 160 168 170 170 170 162 170 17013 162 170 170 170 42 10 0 014 170 170 138 170 168 160 0 015 ; 71-76 tree top16 1 21 85 85 21 85 85 8517 81 85 85 85 85 85 85 8518 64 80 84 85 85 85 84 8519 85 21 87 20 4 0 0 020 85 69 29 205 63 63 60 6021 85 85 20 208 16 0 0 022 ; 77 trunk23 60 60 60 60 60 60 63 24324 ; 78-79 log25 12 3 63 255 195 255 63 026 0 0 232 238 238 234 232 027 ; 80-83 stone28 10 42 170 171 175 171 171 17029 160 168 171 171 235 171 171 17130 170 190 170 191 170 170 106 8631 171 251 171 187 171 171 171 14932 ; 84-87 plot33 0 12 48 0 204 3 48 034 0 12 192 195 0 12 0 20435 12 192 3 48 0 12 64 8136 0 48 3 48 192 12 193 537 ; 88 fence38 32 32 168 32 170 32 32 17039 ; 89-94 ghoul40 1 5 4 5 20 5 9 4241 80 84 68 84 16 64 0 14942 42 42 42 42 42 38 34 4043 165 128 149 165 128 128 128 12844 15 15 15 15 60 60 20 8445 192 192 240 60 60 15 5 546 ; 95 wall47 170 138 170 168 170 138 170 16848 ; 96 skirting board49 170 170 170 0 255 255 255 050 ; 97 floor51 0 0 0 0 0 0 0 25252 ; 98-103 bookcase53 255 192 210 218 218 255 192 19754 255 3 83 87 87 255 3 3555 229 229 255 192 216 217 217 25556 103 103 255 3 19 27 91 25557 192 200 218 218 255 255 192 19258 3 83 91 91 255 255 3 359 ; 104 eyes60 0 0 0 204 204 0 0 061 ; 105 picture62 255 215 215 215 215 215 255 17063 ; 106 frame, across64 0 0 0 255 255 0 0 065 ; 107 frame, down66 60 60 60 60 60 60 60 6067 ; 108 frame, corner68 0 0 0 60 60 0 0 069 ; 109-114 ghoul, second step70 0 1 5 4 5 20 5 971 0 80 84 68 84 16 64 072 42 42 42 42 42 38 34 4073 149 165 128 149 165 128 128 12874 15 15 15 15 3 3 1 575 192 192 192 192 240 240 64 80]7677; The three panels, 12 characters by 9 each, frame and all.78BYTE ARRAY panels=[79 ; the woods80 108 106 106 106 106 106 106 106 106 106 106 10881 107 0 65 0 0 0 0 65 0 67 68 10782 107 0 0 0 0 65 0 0 0 69 70 10783 107 71 72 73 0 0 0 0 0 0 0 10784 107 74 75 76 0 0 0 71 72 73 0 10785 107 0 77 0 0 0 0 74 75 76 0 10786 107 0 77 0 0 78 79 0 77 0 0 10787 107 66 77 0 0 66 0 0 77 0 66 10788 108 106 106 106 106 106 106 106 106 106 106 10889 ; the graveyard90 108 106 106 106 106 106 106 106 106 106 106 10891 107 65 0 0 0 0 65 0 0 0 0 10792 107 0 0 65 0 0 0 0 0 65 0 10793 107 88 88 88 88 88 88 88 88 88 88 10794 107 80 81 0 0 0 0 0 0 80 81 10795 107 82 83 66 0 0 0 89 90 82 83 10796 107 84 85 0 0 0 0 91 92 84 85 10797 107 86 87 0 66 0 0 93 94 86 87 10798 108 106 106 106 106 106 106 106 106 106 106 10899 ; the mansion100 108 106 106 106 106 106 106 106 106 106 106 108101 107 95 95 105 95 95 105 95 95 95 95 107102 107 96 96 96 96 96 96 96 96 96 96 107103 107 97 97 97 97 97 97 97 97 98 99 107104 107 97 232 97 97 97 97 97 97 100 101 107105 107 97 97 97 97 97 97 97 97 102 103 107106 107 97 97 97 97 97 232 97 97 97 97 107107 107 97 97 97 97 97 97 97 97 97 97 107108 108 106 106 106 106 106 106 106 106 106 106 108]
MUSIC.ACT · 29 lines · the file itself
1; MUSIC.ACT - the tune for THRILLER, screen 2: eight bars of sixteenth notes.2; Made by tools/make_music.py, which has the notes by name; change them there.3; 0 is silence, 1 holds the note that is sounding, anything else is a new note (AUDF).45; the bass, played with distortion 12 (one bar to a line)6BYTE ARRAY bass=[7 57 0 28 0 0 30 28 0 48 0 0 42 0 40 42 08 57 0 28 0 0 30 28 0 48 0 0 51 0 48 45 09 57 0 28 0 0 30 28 0 48 0 0 42 0 40 42 010 57 0 28 0 0 30 28 0 40 0 42 0 48 0 51 5111 48 0 48 0 0 48 42 0 48 0 0 51 0 48 48 012 51 0 25 0 0 28 25 0 51 0 0 51 0 40 51 013 48 0 48 0 0 48 42 0 48 0 0 40 0 42 48 014 51 0 25 0 0 25 51 0 30 0 30 0 25 0 30 30]1516; the lead, a pure tone; a second voice plays it again three steps later, quietly, as an echo17BYTE ARRAY lead=[18 0 0 0 0 72 1 0 0 72 68 72 1 91 1 1 119 0 0 0 0 96 1 0 0 96 91 96 1 114 1 1 120 0 0 0 0 72 1 0 0 72 68 72 1 53 1 1 121 57 1 1 68 1 1 72 1 81 1 1 91 1 1 96 122 60 1 1 1 1 1 0 0 60 1 45 1 60 1 1 123 57 1 1 1 1 1 0 0 57 1 47 1 57 1 1 124 53 1 1 1 1 1 0 0 53 1 45 1 35 1 1 125 47 1 0 0 47 1 0 0 57 47 0 0 72 1 1 1]2627; the drums: 1 kick, 2 snare, 3 hat (one bar, repeated)28BYTE ARRAY drum=[29 1 0 3 0 2 0 3 1 0 1 3 0 2 0 3 3]
MUSIC1.ACT · 29 lines · the file itself
1; MUSIC1.ACT - the tune for THRILLER, screen 1: eight bars of sixteenth notes.2; Made by tools/make_music.py, which has the notes by name; change them there.3; 0 is silence, 1 holds the note that is sounding, anything else is a new note (AUDF).45; the bass, played with distortion 12 (one bar to a line)6BYTE ARRAY bass=[7 57 0 28 0 57 0 28 0 57 0 28 0 48 0 42 08 57 0 28 0 57 0 28 0 57 0 28 0 30 0 25 09 57 0 28 0 57 0 28 0 57 0 28 0 48 0 42 010 57 0 28 0 57 0 28 0 42 0 42 0 40 0 40 011 48 0 48 0 48 0 48 0 48 0 48 0 42 0 42 012 51 0 25 0 51 0 25 0 51 0 25 0 51 0 25 013 48 0 48 0 48 0 48 0 42 0 42 0 40 0 40 014 51 0 25 0 51 0 25 0 30 0 30 0 30 30 25 25]1516; the lead, a pure tone; a second voice plays it again three steps later, quietly, as an echo17BYTE ARRAY lead=[18 53 1 0 0 53 47 45 1 0 0 47 1 53 1 0 019 72 1 0 0 72 60 53 1 0 0 57 1 72 1 1 120 53 1 0 0 53 47 45 1 0 0 40 1 35 1 0 021 40 1 1 45 1 1 47 1 53 1 1 57 1 1 72 122 45 1 1 1 60 1 45 1 35 1 1 1 45 1 60 123 47 1 1 1 64 1 47 1 37 1 1 1 47 1 64 124 45 1 40 1 35 1 1 1 40 1 45 1 47 1 53 125 57 1 0 0 47 1 0 0 35 40 47 57 72 1 1 1]2627; the drums: 1 kick, 2 snare, 3 hat (one bar, repeated)28BYTE ARRAY drum=[29 1 0 3 0 2 0 3 0 1 1 3 0 2 0 3 2]
MUSIC3.ACT · 29 lines · the file itself
1; MUSIC3.ACT - the tune for THRILLER, screen 3: eight bars of sixteenth notes.2; Made by tools/make_music.py, which has the notes by name; change them there.3; 0 is silence, 1 holds the note that is sounding, anything else is a new note (AUDF).45; the bass, played with distortion 12 (one bar to a line)6BYTE ARRAY bass=[7 57 0 0 0 0 0 0 0 28 0 0 0 30 0 0 08 57 0 0 0 0 0 0 0 48 0 0 0 51 0 0 09 57 0 0 0 0 0 0 0 28 0 0 0 30 0 0 010 57 0 0 0 0 0 0 0 40 0 0 0 42 0 0 011 48 0 0 0 0 0 0 0 48 0 0 0 42 0 0 012 51 0 0 0 0 0 0 0 25 0 0 0 51 0 0 013 48 0 0 0 0 0 0 0 42 0 0 0 40 0 0 014 51 0 0 0 30 0 0 0 51 0 0 0 30 0 25 0]1516; the lead, a pure tone; a second voice plays it again three steps later, quietly, as an echo17BYTE ARRAY lead=[18 0 0 0 0 53 1 45 1 35 1 1 1 37 1 1 119 0 0 0 0 53 1 45 1 35 1 1 1 47 1 1 120 0 0 0 0 53 1 45 1 35 1 1 1 37 1 1 121 40 1 45 1 47 1 53 1 57 1 1 1 1 1 1 122 0 0 0 0 60 1 45 1 35 1 1 1 45 1 1 123 0 0 0 0 64 1 47 1 37 1 1 1 47 1 1 124 0 0 0 0 53 1 45 1 35 1 40 1 45 1 1 125 47 1 1 1 57 1 1 1 72 1 1 1 1 1 1 1]2627; the drums: 1 kick, 2 snare, 3 hat (one bar, repeated)28BYTE ARRAY drum=[29 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0]
L1POKEY.ACT · 280 lines · the file itself
Its 3 PROCs and FUNCs, in the order they appear:
1; (Game copy of sound/L1POKEY.ACT. One change: L1Start pokes 3 into2; SKCTL, 53769, where the original poked 0. Change it there, then copy.)3; L1POKEY.ACT - Looper1 from the MIDI, NTSC (one tick per VBI).4; Include after the game's global declarations, before other procedures.5; Call L1Start() on entry, L1Tick() once per video frame,6; and L1Stop() on exit. Run Tick/Roll and input as usual each frame.7; Owns POKEY channels 1-4 during playback. Do not run another8; sound routine on these channels while this loop is active.9; Bass, lead, drum body and drum noise. Each row is AUDF1..AUDC4.10; The pointer wraps after 243 frames without a silent frame or reset.1112DEFINE L1POKLEN="1944"13CARD l1pos14BYTE ARRAY l1pokey=[15 $70 $00 $1B $A4 $46 $A4 $03 $8816 $70 $A1 $1B $A4 $69 $A8 $03 $8517 $70 $A2 $1B $A3 $78 $AB $03 $8318 $70 $A2 $1B $A3 $7E $AC $03 $8119 $70 $A2 $1B $A1 $80 $AC $00 $0020 $70 $A2 $00 $00 $80 $A9 $00 $00 ; ... and so on: 243 rows in all. The whole file is linked above.258259PROC L1Start()260 l1pos=0261 Poke(53761,0) Poke(53763,0) Poke(53765,0) Poke(53767,0)262 Poke(53768,1)263 ; 3, not 0: with SKCTL at 0 POKEY's264 ; noise counters are held still and265 ; the drum channel (distortion 8)266 ; would be silent on a real 800267 Poke(53769,3)268RETURN269270PROC L1Tick()271 BYTE j272 FOR j=0 TO 7 DO Poke(53760+j,l1pokey(l1pos+j)) OD273 l1pos==+8274 IF l1pos=L1POKLEN THEN l1pos=0 FI275RETURN276277PROC L1Stop()278 Poke(53761,0) Poke(53763,0) Poke(53765,0) Poke(53767,0)279 Poke(53768,0)280RETURN
B3POKEY.ACT · 227 lines · the file itself
Its 3 PROCs and FUNCs, in the order they appear:
1; (Game copy of sound/B3POKEY.ACT. One change: B3Start pokes 3 into2; SKCTL, 53769, where the original poked 0. Change it there, then copy.)3; B3POKEY.ACT - native POKEY rendition of Bumper3, NTSC.4; Include after global declarations, before other procedures.5; Call B3Start(), then B3Tick() once per video frame while b3on<>0.6; B3Stop() ends playback early; playback also stops automatically.7; Owns POKEY channels 1-4 (bass, middle, treble, and noise).89DEFINE B3POKLEN="1512"10CARD b3pos11BYTE b3on12BYTE ARRAY b3pokey=[13 $65 $00 $17 $00 $0A $00 $05 $0014 $65 $A1 $17 $A1 $0A $00 $05 $0015 $65 $A2 $17 $A2 $0A $A1 $05 $8116 $65 $A2 $16 $A3 $09 $A1 $05 $8117 $65 $A2 $12 $A3 $09 $A1 $05 $8118 $65 $A3 $12 $A2 $08 $A1 $05 $81 ; ... and so on: 189 rows in all. The whole file is linked above.202203PROC B3Start()204 b3pos=0 b3on=1205 Poke(53761,0) Poke(53763,0) Poke(53765,0) Poke(53767,0)206 Poke(53768,1)207 ; 3, not 0: with SKCTL at 0 POKEY's208 ; noise counters are held still and209 ; the noise channel (distortion 8)210 ; would be silent on a real 800211 Poke(53769,3)212RETURN213214PROC B3Stop()215 b3on=0216 Poke(53761,0) Poke(53763,0) Poke(53765,0) Poke(53767,0)217 Poke(53768,0)218RETURN219220PROC B3Tick()221 BYTE j222 IF b3on<>0 THEN223 FOR j=0 TO 7 DO Poke(53760+j,b3pokey(b3pos+j)) OD224 b3pos==+8225 IF b3pos=B3POKLEN THEN B3Stop() FI226 FI227RETURN
HAPPOKEY.ACT · 231 lines · the file itself
Its 3 PROCs and FUNCs, in the order they appear:
1; (Game copy of sound/HAPPOKEY.ACT. One change: HpStart pokes 3 into2; SKCTL, 53769, where the original poked 0. Change it there, then copy.)3; HAPPOKEY.ACT - native POKEY rendition of Happy, NTSC.4; Include after global declarations, before other procedures.5; Call HpStart(), then HpTick() once per video frame while hpon<>0.6; HpStop() ends playback early; playback also stops automatically.7; Owns POKEY channels 1-4 (bass, two harmony tones, and treble/noise).89DEFINE HAPPOKLEN="1544"10CARD hppos11BYTE hpon12BYTE ARRAY happokey=[13 $AA $A2 $1B $A3 $0F $A1 $08 $0014 $91 $A5 $1B $A7 $0F $A2 $08 $A115 $77 $A6 $1B $A7 $0F $A3 $08 $A116 $73 $A6 $1B $A7 $11 $A3 $08 $A117 $72 $A6 $1B $A6 $12 $A3 $08 $A118 $72 $A6 $1B $A5 $12 $A4 $08 $A1 ; ... and so on: 193 rows in all. The whole file is linked above.206207PROC HpStart()208 hppos=0 hpon=1209 Poke(53761,0) Poke(53763,0) Poke(53765,0) Poke(53767,0)210 Poke(53768,1)211 ; 3, not 0: with SKCTL at 0 POKEY's212 ; noise counters are held still and213 ; the noise channel (distortion 8)214 ; would be silent on a real 800215 Poke(53769,3)216RETURN217218PROC HpStop()219 hpon=0220 Poke(53761,0) Poke(53763,0) Poke(53765,0) Poke(53767,0)221 Poke(53768,0)222RETURN223224PROC HpTick()225 BYTE j226 IF hpon<>0 THEN227 FOR j=0 TO 7 DO Poke(53760+j,happokey(hppos+j)) OD228 hppos==+8229 IF hppos=HAPPOKLEN THEN HpStop() FI230 FI231RETURN
LAUGH.ACT · 553 lines · the file itself
1; LAUGH.ACT - the digitized laugh for THRILLER.2; A copy of sound/laugh3-atari-loop.act (Dale's, cut from sound/sourceMaterial.wav). Change it there, then copy.3; The laugh the program builds from scratch (tools/make_laugh.py) now goes to LAUGHSYN.ACT.4; Two samples of four bits in each byte, the first in the high half. They are played at about5; 4000 a second by poking them into POKEY's volume register (see PROC Laugh). The end joins the start.6DEFINE LAUGHLEN="8717"78BYTE ARRAY laugh=[9 $7B $38 $A5 $A8 $59 $88 $68 $96 $68 $97 $77 $98 $59 $88 $77 $8610 $97 $88 $78 $78 $78 $88 $78 $87 $88 $78 $87 $87 $77 $88 $77 $7711 $88 $88 $87 $87 $87 $78 $68 $78 $88 $87 $87 $87 $88 $78 $77 $8712 $88 $87 $77 $88 $77 $77 $88 $97 $78 $88 $78 $69 $68 $88 $95 $A813 $67 $77 $98 $7A $66 $67 $97 $A8 $2F $22 $C2 $E4 $6D $27 $69 $D314 $36 $6A $D5 $77 $5C $6A $84 $67 $AB $75 $65 $D5 $92 $AF $09 $58 ; ... and so on: 545 rows in all. The whole file is linked above.