![]() |
Routines |
| Prev: 46754 | Up: Map | Next: 46777 |
|
Handles a block that slides to and fro along the Y axis. The block follows a triangle wave that is worked out from the frame counter, so that it keeps in step however long the room has been on the screen. The code of HandleMovingBlock is modified to use the Y coordinate and Y speed of the block.
|
||||||||
| HandleBlockMovingNorthSouth | 46769 | CALL PlaySoundFromYPosition | Play the sound of a block moving along the Y axis. | |||||
| 46772 | LD HL,522 | Set H to the offset of the Y coordinate and L to the offset of the speed in Y. | ||||||
| 46775 | JR HandleMovingBlock | Jump to HandleMovingBlock. | ||||||
| Prev: 46754 | Up: Map | Next: 46777 |