![]() |
Routines |
| Prev: 55885 | Up: Map | Next: 56008 |
|
Used by the routine at 52263.
|
||||
|
Game completion. Maroc has used Caliburn on Avelach in the High Temple of Chaos (event check at 52263).
|
||||
| 55944 | LD A,255 | |||
| 55946 | LD (60246),A | (255 = max) length/frequency for white noise effect | ||
| 55949 | LD (60103),A | (255 = max) counter duration for white noise effect | ||
| 55952 | LD (60073),A | Also set as attribute value for screen | ||
|
Change (decrement) screen colour attributes and play sound effects
|
||||
| 55955 | CALL 57863 | Set screen colour | ||
| 55958 | CALL 57815 | Play sound effect | ||
| 55961 | LD A,(60103) | Get counter | ||
| 55964 | DEC A | Decrement counter (also the screen colour/attribute value) | ||
| 55965 | JR NZ,55949 | Repeat until counter at zero | ||
|
Print success message on scroll:
|
||||
| 55967 | CALL 60018 | Reset attributes in top right corner of scroll (in case the spell icon is FLASHING) | ||
| 55970 | CALL 57081 | Clear the scroll area | ||
| 55973 | LD A,35 | Message number 35 to print (29433) | ||
| 55975 | CALL 58789 | Identify the message text to print | ||
| 55978 | LD (60065),HL | Re-store the address pointer for the end of the text string | ||
| 55981 | LD HL,20615 | Screen display address to print the text | ||
| 55984 | LD (60068),HL | |||
| 55987 | CALL 58064 | Set up message text on scroll to print | ||
|
Play one complete set of game (intro/main theme) music:
|
||||
| 55990 | LD A,1 | Tune number #1 | ||
| 55992 | CALL 58806 | Play the tune | ||
|
Calculate and print the player's (final) rank on the scroll:
|
||||
| 55995 | CALL 57081 | Clear the scroll area | ||
| 55998 | CALL 58599 | Calculate and print rank on scroll | ||
|
Play game (intro) tune on a loop:
|
||||
| 56001 | LD A,1 | Tune number #1 | ||
| 56003 | CALL 58806 | Play the tune | ||
| 56006 | JR 56001 | ...and repeat until the player resets their Spectrum... | ||
| Prev: 55885 | Up: Map | Next: 56008 |