Prev: 54294 Up: Map Next: 54413
54318: PREPARE_TO_DRAW_ENEMY
Used by the routine PREPARE_AND_DRAW_ENEMIES.
PREPARE_TO_DRAW_ENEMY 54318 LD A,(IX+3)
54321 CP 2
54323 JP NC,PREPARE_TO_DRAW_ENEMY_0
54326 LD HL,53294 Point HL at Rocketplane gfx
54329 RRA
54330 JP NC,L54413
54333 LD HL,53326 Point HL at Ball gfx
54336 JP L54413
PREPARE_TO_DRAW_ENEMY_0 54339 CP 5
54341 JP NC,PREPARE_TO_DRAW_ENEMY_4
54344 SUB 2
54346 PUSH BC
54347 LD B,A
54348 LD C,0
54350 SRL B
54352 RR C
54354 LD HL,52910 Point HL at Square gfx
54357 ADD HL,BC
54358 POP BC
54359 LD A,(59674)
54362 ADD A,B
54363 AND 3
PREPARE_TO_DRAW_ENEMY_1 54365 LD B,A
54366 LD C,0
PREPARE_TO_DRAW_ENEMY_2 54368 SRL B
54370 RR C
54372 RR B
54374 RR C
54376 RR B
54378 RR C
54380 ADD HL,BC
54381 JP L54413
PREPARE_TO_DRAW_ENEMY_3 54384 LD HL,52718 Point HL at Domino gfx
54387 LD A,(59676)
54390 LD B,A
54391 LD C,0
54393 JP PREPARE_TO_DRAW_ENEMY_2
PREPARE_TO_DRAW_ENEMY_4 54396 CP 5
54398 JP NZ,PREPARE_TO_DRAW_ENEMY_3
54401 LD HL,52462 Point HL at Yinyang gfx
54404 LD A,(59674)
54407 ADD A,B
54408 AND 7
54410 JP PREPARE_TO_DRAW_ENEMY_1
Prev: 54294 Up: Map Next: 54413