![]() |
Routines |
| Prev: 51337 | Up: Map | Next: 51378 |
|
Used by the routine at StartGame.
Sets a block of two attributes across, down a number of rows of the attribute buffer. The first attribute is made bright. Nothing is coloured when the player is dead.
|
||||||||||||
|
Return if the player is dead.
|
||||||||||||
| ColourPlayerAttributes | 51352 | EX AF,AF' | Keep the attribute. | |||||||||
| 51353 | LD A,(48270) | Return if the player is dead. | ||||||||||
| 51356 | AND A | |||||||||||
| 51357 | RET Z | |||||||||||
| 51358 | EX AF,AF' | Get the attribute back. | ||||||||||
|
Colour two attributes down each row.
|
||||||||||||
| 51359 | LD E,A | Add the flash colour used in the last frame (PreviousFlashColour) to the attribute. | ||||||||||
| 51360 | LD A,(48124) | |||||||||||
| 51363 | OR E | |||||||||||
| 51364 | LD DE,23 | Set the distance to the first attribute in the next row (24 minus one). | ||||||||||
| ColourPlayerAttributes_Loop | 51367 | OR 64 | Set the first attribute (bright) and the second attribute (not bright), move down a row, and loop back until all of the rows have been coloured. | |||||||||
| 51369 | LD (HL),A | |||||||||||
| 51370 | INC HL | |||||||||||
| 51371 | AND 63 | |||||||||||
| 51373 | LD (HL),A | |||||||||||
| 51374 | ADD HL,DE | |||||||||||
| 51375 | DJNZ ColourPlayerAttributes_Loop | |||||||||||
| 51377 | RET | Return. | ||||||||||
| Prev: 51337 | Up: Map | Next: 51378 |