![]() |
Routines |
| Prev: C455 | Up: Map | Next: C471 |
|
Used by the routine at UpdatePlayerLegs.
Plays a tone with a pitch that depends on the player's materialise timer (MaterialiseTimer).
|
||||
| PlayMaterialiseSound | C463 | LD A,($BC02) | 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 08. | |
| C466 | CPL | |||
| C467 | LD B,A | |||
| C468 | LD C,$08 | |||
|
This entry point is used by the routines at PlayGhostSound, PlayEndingGhostSound, PlaySoundEffect, PlayMovementSound, PlayRandomSound and PlayObjectSound.
Plays a tone.
|
||||
| PlayTone | C46A | CALL PlaySquareWave | Play a cycle of the tone, and loop back until the whole tone has been played. | |
| C46D | DEC C | |||
| C46E | JR NZ,PlayTone | |||
| C470 | RET | Return. | ||
| Prev: C455 | Up: Map | Next: C471 |