![]() |
Routines |
| Prev: 50261 | Up: Map | Next: 50289 |
|
Used by the routine at UpdatePlayerLegs.
Plays a tone with a pitch that depends on the player's materialise timer (MaterialiseTimer).
|
||||
| PlayMaterialiseSound | 50275 | LD A,(48130) | Work out the pitch of the tone from the timer, so that it rises as the timer counts down, and set the length of the tone to 8. | |
| 50278 | CPL | |||
| 50279 | LD B,A | |||
| 50280 | LD C,8 | |||
|
This entry point is used by the routines at PlayGhostSound, PlayEndingGhostSound, PlaySoundEffect, PlayMovementSound, PlayRandomSound and PlayObjectSound.
Plays a tone.
|
||||
| PlayTone | 50282 | CALL PlaySquareWave | Play a cycle of the tone, and loop back until the whole tone has been played. | |
| 50285 | DEC C | |||
| 50286 | JR NZ,PlayTone | |||
| 50288 | RET | Return. | ||
| Prev: 50261 | Up: Map | Next: 50289 |