Haunted House Programmer's Notes - best viewed with a monospaced font Disclaimer: this has been typed up from notes scrawled on a few sheets of paper back in 1991, and although it should be correct, I can't guarantee absolute 100% accuracy with the finished version that appeared on the Your Sinclair cover tape. Project started: 3rd July 1991 Backgrounds completed: 18th July 1991 Project completed: Friday 23rd August 1991, 4:55PM. Memory: These addresses are listed in the notes. The status panel appears to take up an excessive 6912 bytes, but bear in mind that this area doubles up as the background mask screen, so that Izzy walks behind on-screen objects. The locations for the program code and room data are not mentioned. 24576 screen object masks and status panel graphics (6912 bytes) 31488 8x8 screen building block graphics 33536 8x8 screen building block masks 35072 screen building block attributes 35328 pre-shifted Izzy sprite 37632 8x8 chars (? possibly for the end game sequence ?) 37984 8x8 colours (? possibly for the end game sequence ?) 38004 Izzy's friends 38484 Colours 38544 Sprites (not pre-shifted) 40144 Font (16x16) 41584 Aliens (ghost patrol data?) 41904 Fountain x+y pixel coordinates 41964 ... Room layout: Each room consists of an uncompressed array of blocks, 24 characters wide by 18 high, so each screen occupies 576 bytes. There are 40 rooms, which therefore require 23040 bytes of memory. - - 0 1 2 3 4 5 - - Attic 6 7 8 9 10 11 12 13 - - Second floor 14 15 16 17 18 19 20 21 - - First floor 22 23 24 25 26 27 28 29 30 31 Ground floor - - 32 33 34 35 36 37 38 39 Cellar Building block layouts: 0-127 passable - Izzy can pass through from any direction 128-191 platforms - stop Izzy falling, pass through from left/right/below 192-255 walls - impenetrable Space: 0 Key: 1, 2 (1 changes to 2 once collected) Cross: 3, 4 (3 changes to 4 once collected) Walls: 192-199 Bricks: 200-205 Stars: 5, 6, 7, 12-15 Grass: 216-219 Eyes: 245-248 Floorboards: 170-173 Rotten floor: 116, 117 Crate 1: 139 140 16 17 Crate 2: 141 142 18 19 Flowers 1: 52 53 54 -- 55 56 57 58 59 60 61 62 Flowers 2: -- 68 69 -- 79 80 81 82 83 84 85 86 Stand: 153 154 87 88 89 90 Candles: 36 37 38 39 40 40 41 41 42 42 43 43 44 45 46 47 -- 48 49 -- -- 50 51 -- Platforms: 147 148 149 150 Table: 143 144 145 145 145 145 145 145 145 145 146 --- --- 63 --- --- --- --- --- 63 --- --- --- --- 64 --- --- --- --- --- 64 --- --- --- --- 65 --- --- --- --- --- 65 --- --- --- --- 66 --- --- --- --- --- 66 --- --- Barrel: 67 151 152 70 71 72 73 74 75 76 77 78 Stairs left: 20 21 20 26 27 --- --- --- 22 23 22 23 28 26 27 --- 24 25 24 25 22 23 28 26 128 129 130 131 24 25 22 23 32 33 132 129 130 131 24 25 --- --- 32 33 132 129 130 131 Stairs right: --- --- --- 29 30 21 20 21 --- 29 30 31 22 23 22 23 30 31 22 23 24 25 24 25 22 23 24 25 134 130 133 128 24 25 134 130 133 135 34 35 134 130 133 135 34 35 --- --- Books: --- 91 92 93 94 --- 95 96 97 98 155 156 157 157 158 --- 99 --- 100 101 Skeleton: --- 159 160 102 103 104 161 162 105 106 107 Torch: 8/9/10/11 163 108 Ladder: 166 109 110 166 --- 164 165 --- --- 164 165 --- Moon: 212 213 214 215 Window: 206 207 208 209 210 211 Fountain: --- --- --- --- --- 220 --- --- --- --- --- --- --- --- --- 221 222 223 --- --- --- --- --- --- 221 224 222 222 222 222 223 --- --- 221 224 224 222 222 222 222 222 222 222 223 227 225 225 226 226 226 226 226 226 226 228 Picture: 229 230 230 230 231 232 0 0 0 233 232 234 245 235 233 232 236 237 238 233 232 239 240 241 233 242 243 243 243 244 Chair: --- --- 249 --- --- 250 --- --- 251 167 168 169 111 --- 112 113 114 115 Lamp: 119 179 120 121 122 123 --- 112 124 --- 125 --- Bed: --- --- --- --- --- --- --- --- --- --- --- --- 249 --- --- --- --- --- --- --- --- --- --- --- --- 250 --- --- --- --- --- --- --- --- --- --- 174 175 252 176 176 176 176 176 176 176 176 177 177 178 178 118 119 119 119 119 119 119 119 119 120 120 121 121 126 --- 111 --- --- --- --- --- --- --- --- --- --- 127 Ghost table: maximum of 2 patrolling ghosts per screen, where the drip appears it uses the second ghost slot. format: byte 0 pixels from top (minimum) byte 1 pixels from left (minimum) byte 2 maximum coordinate byte 3 type and direction screen ghost 1 bytes ghost 2 bytes 0 168 72 112 28 1 56 72 208 0 104 104 168 152 2 56 64 208 0 168 56 152 36 3 48 184 168 168 * drip 4 56 64 152 152 5 56 136 128 148 168 64 200 32 6 7 128 88 168 16 8 168 112 208 4 9 56 104 208 8 168 56 208 16 10 96 192 168 12 ? 168 56 152 16 11 144 48 112 32 12 64 80 160 8 48 184 168 168 * drip 13 56 96 144 136 136 200 168 132 14 56 112 112 140 168 72 208 28 15 72 48 144 36 16 80 176 168 136 17 48 88 168 168 * drip 18 112 48 192 4 19 48 64 144 168 * drip 20 56 88 144 148 88 128 208 28 21 88 56 136 16 56 176 128 140 22 56 104 192 8 112 152 168 132 23 56 96 128 152 168 56 208 4 24 80 88 168 140 25 64 144 128 136 26 64 72 200 8 168 80 160 4 27 28 29 128 64 176 36 30 31 32 72 80 192 4 112 80 168 168 * drip 33 48 96 128 168 * drip 34 144 56 184 8 35 56 56 152 152 36 56 152 152 140 48 72 120 168 * drip 37 56 64 208 8 38 56 64 208 4 168 56 208 16 * drip 39 104 64 168 152 48 96 168 168 * drip Font character set: 0 space 1-26 letters A-Z 27 full stop 28 comma 29 left parenthesis 30 right parenthesis 31 exclamation mark 32-41 digits 0-9 42 (indistinct) 43 copyright symbol 44 apostrophe Sprites: 4 frames each. 0-3 bat 4-7 ball with feet 8-11 magic ring 12-15 bubble 16-19 tripod 20-23 revolving balls 24-27 skull 28-31 wheel 32-35 ghost 36-39 spinning top 40-43 emerging drip 44 falling drip 45-49 drip splash For more info visit http://members.fortunecity.com/jonathan6/egghead/