![]() |
Routines |
| Prev: C39D | Up: Map | Next: C3BD |
|
Used by the routines at UpdateCreature and UpdatePlayerBody.
Plays a burst of noise, if the object at IX has been drawn in the view (bit 1 of its flags).
|
||||||||
| PlayBumpSound | C3AA | BIT 1,(IX+$07) | Return if the object has not been drawn in the view, because it can't be heard. | |||||
| C3AE | RET Z | |||||||
| C3AF | LD C,$10 | Set a counter for sixteen tones. | ||||||
| PlayBumpSound_Loop | C3B1 | LD A,C | Play a short tone, with a pitch that depends on the counter, and loop back until all sixteen tones have been played. | |||||
| C3B2 | XOR $A5 | |||||||
| C3B4 | ADD A,C | |||||||
| C3B5 | LD B,A | |||||||
| C3B6 | CALL PlaySquareWave | |||||||
| C3B9 | DEC C | |||||||
| C3BA | JR NZ,PlayBumpSound_Loop | |||||||
| C3BC | RET | Return. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: C39D | Up: Map | Next: C3BD |