|  | Routines | 
| Prev: BFE7 | Up: Map | Next: C03A | 
| 
Used by the routine at BA5C.
 | ||||
| BFEF | LD A,(IX+$09) | Check enemy type | ||
| BFF2 | CP $FE | Return if bubble | ||
| BFF4 | RET Z | |||
| BFF5 | CP $FD | Return if smartbomb | ||
| BFF7 | RET Z | |||
| BFF8 | CP $FC | Return if question | ||
| BFFA | RET Z | |||
| BFFB | AND $7F | |||
| BFFD | CP $08 | is SCANNER? | ||
| BFFF | JP Z,$C27E | Jump to handle shot and lateral collision detection | ||
| C002 | CP $0C | is POD? | ||
| C004 | JP Z,$C1CA | Handle lateral collision detection for POD | ||
| C007 | CP $0D | is MINE LAYER? | ||
| C009 | JP Z,$C1CA | Handle lateral collision detection and fire for MINE LAYER | ||
| C00C | CP $0E | is MINE? | ||
| C00E | JP Z,$C150 | Handle MINE movement | ||
| C011 | CP $0F | is BLOB? | ||
| C013 | JP Z,$C14D | Handle BLOB movement | ||
| C016 | CP $02 | Enemy type $02? Not exist!!! | ||
| C018 | JP Z,$C029 | |||
| C01B | OR A | |||
| C01C | JP NZ,$C01F | |||
| 
for the rest of enemies handle coliision detection and set direction to chase Rex
 | ||||
| C01F | LD A,(IX+$02) | jump to handle right collision detection if enemy moves right | ||
| C022 | OR A | |||
| C023 | JP Z,$C3E0 | |||
| C026 | JP $C4A6 | Jump to handle left collision detection | ||
| C029 | XOR A | Set face direction right | ||
| C02A | LD (IX+$02),A | |||
| C02D | LD A,($A0B6) | if Rex x-position id greater then enemy x-position return | ||
| C030 | CP (IX+$00) | |||
| C033 | RET NC | |||
| C034 | LD A,$01 | Change face direction to left | ||
| C036 | LD (IX+$02),A | |||
| C039 | RET | |||
| Prev: BFE7 | Up: Map | Next: C03A |