![]() |
Routines |
| Prev: BF2F | Up: Map | Next: BF4B |
|
Used by the routine at HandlerTribesman.
Plays eight cycles of a tone. The half-period is the distance to the nearest amulet piece, plus the X and Y positions of the actor, rotated left twice.
|
||||||||||
| PlayAmuletPieceSound | BF3D | ADD A,(IX+$03) | Add the X position of the actor to the distance. | |||||||
| BF40 | ADD A,(IX+$04) | Add the Y position of the actor to the distance. | ||||||||
| BF43 | RLCA | Rotate left twice. | ||||||||
| BF44 | RLCA | |||||||||
| BF45 | LD B,A | Store the result in B (the half-period). | ||||||||
| BF46 | LD C,$08 | Set the number of cycles in C to 08. | ||||||||
| BF48 | JP PlayWaveSequence | Jump to PlayWaveSequence to play the sound. | ||||||||
| Prev: BF2F | Up: Map | Next: BF4B |