Prev: 6d5c Up: Map Next: 6d94
6d67: Change alien direction flag to up, and other updates.
Used by the routine at 6cd7.
6d67 res 7,(ix+$04) Set alien to moving up
6d6b ld a,($5dce) Update Y speed using random number
6d6e add a,$08
6d70 ld (ix+$06),a
6d73 jp $6cf7 Update alien position
Change alien moving direction flag to down.
6d76 set 7,(ix+$04)
6d7a jp $6cf7 Update alien position
Subtract 2 from X position.
6d7d sub $02
6d7f jp $6d03 Update alien YX position
Change direction to down.
6d82 dec (ix+$06) Decrement Y speed
6d85 jr nz,$6d37 If speed is zero, set to moving down
6d87 set 7,(ix+$04)
6d8b jr $6d37 Draw alien and perform platform collision
This entry point is used by the routine at 6cbe.
6d8d and a Reset Carry flag
6d8e ex de,hl Swap registers
6d8f sbc hl,de Subtract DE and Carry flag from HL
6d91 jp $6d19 Update vertical position, direction, and speed
Prev: 6d5c Up: Map Next: 6d94