Prev: 74A0 Up: Map Next: 74E4
74C6: Trigger tank shell explosion
Converts the flying tank shell into an explosion. Clears flying bit, sets exploding bit, and adds explosion to viewport objects.
render_tank_shell_explosion 74C6 LD D,$80 Set D=$80 (explosion marker), clear shell coordinates.
74C8 LD HL,$0000
74CB LD ($7385),HL Store $0000 to tank_shell_coordinates.
74CE LD A,($7383) Load shell state, clear FLYING bit, set EXPLODING bit.
74D1 RES 7,A
74D3 SET 5,A
74D5 LD ($7383),A Store updated state, add explosion to viewport_slots objects set.
74D8 LD HL,$5F00
74DB CALL add_object_to_set
74DE LD A,$00 Reset trajectory step to 0.
74E0 LD ($7384),A
74E3 RET
Prev: 74A0 Up: Map Next: 74E4