Prev: 64d7 Up: Map Next: 6508
64e8: Collision detection for collectible items / rocket modules.
Input
IX Collectible item object.
64e8 call $72ef Update Actor position direction
64eb ld a,(ix+$04) A=item "state"
64ee bit 2,a Pick up rocket module if bit-2 set
64f0 jp nz,$6565
64f3 bit 1,a Carrying rocket module/fuel if bit-1 set
64f5 jr nz,$6541
64f7 bit 0,a Draw sprite if bit-0 reset
64f9 jr z,$6514
64fb call $6de9 Check for alien collision - returns E
64fe dec e Collect rocket module if E == 0
64ff jr z,$6523
6501 call $75e8 Platform collision - returns E
6504 bit 2,e Draw sprite if bit-2 set
6506 jr nz,$650e
Prev: 64d7 Up: Map Next: 6508