Routines |
Prev: 49215 | Up: Map | Next: 49305 |
|
||||
49274 | LD A,6 | There are 6 lightning flashes between Maroc's sprite movement segments | ||
49276 | LD (60111),A | |||
49279 | CALL 58896 | Toggle sky colour between blue and yellow colour | ||
49282 | LD A,128 | Length/frequency of sound effect | ||
49284 | LD (60246),A | Store length/frequency counter | ||
49287 | LD (60103),A | Also store as sound effect repeat counter | ||
49290 | CALL 57815 | Play sound effect | ||
49293 | LD A,(60103) | |||
49296 | DEC A | Inner loop - decrement counter and repeat sound effect (128 iterations) | ||
49297 | JR NZ,49287 | |||
49299 | LD A,(60111) | Outer loop - decrement counter and repeat lightning effect (6 flashes) | ||
49302 | DEC A | |||
49303 | JR NZ,49276 | Repeat 6 times |
Prev: 49215 | Up: Map | Next: 49305 |