Prev: 39606 Up: Map Next: 39641
39614: Make Entity Sound
Used by the routine at UpdateGrowingBubbleEntity.
Plays four short tones, with a pitch which depends on field 32 of the entity, and carries on with the update of the entity.
Input
IX The entity
MakeEntitySound 39614 LD A,(IX+32) Read field 32 of the entity.
39617 XOR %00011111 Flip bits 0-4.
39619 LD B,A Keep it in B.
39620 ADD A,A Multiply it by four...
39621 ADD A,A
39622 ADD A,B ...and add it to make five times the value.
39623 ADD A,16 Add 16 to make the length of the tones.
39625 LD B,A Set the length of the tones in B.
39626 CALL PlayClick Call PlayClick to play a tone.
39629 CALL PlayClick Call PlayClick to play a tone.
39632 CALL PlayClick Call PlayClick to play a tone.
39635 CALL PlayClick Call PlayClick to play a tone.
39638 JP UpdateEntity_Project Jump to UpdateEntity_Project to carry on updating the entity.
Prev: 39606 Up: Map Next: 39641