Prev: 29278 Up: Map Next: 29422
29290: Display Entity
Used by the routines at 25562, 25887, 27893, MeteorUpdate and JetmanThrust.
DisplayEntity 29290 CALL 29244
29293 EXX
29294 CALL 29220
This entry point is used by the routine at 29278.
DisplayEntity_0 29297 LD A,(24001)
29300 SUB (IX+2)
29303 JP Z,ActorUpdateSize
29306 JP M,DisplayEntity_NewLower
29309 LD C,A
29310 LD A,(24005)
29313 CP C
29314 JP C,ActorUpdateSize
29317 SUB C
29318 LD (24005),A
29321 JP MaskSprite
The new sprite starts lower down the screen.
DisplayEntity_NewLower 29324 EXX
29325 NEG
29327 LD C,A
29328 LD A,(24006)
29331 CP C
29332 JP C,ActorUpdateSizeFlipReg
29335 SUB C
29336 JP ActorUpdateHeightAndMask
This entry point is used by the routines at 25887, 26217 and AnimateExplosion.
DisplayEntity_1 29339 CALL 29247
29342 JR DisplayEntity_4
This entry point is used by the routines at 25752 and 26217.
DisplayEntity_2 29344 CALL 29223
29347 JR DisplayEntity_3
This entry point is used by the routines at 25887, 26375 and AnimateExplosion.
Erases the previous sprite of an actor.
RemoveEntity 29349 CALL 29220
This entry point is used by the routine at AnimateExplosion.
DisplayEntity_3 29352 EXX
29353 XOR A
29354 LD C,A
29355 LD (24006),A
29358 LD (24003),A
29361 EXX
29362 JP MaskSprite
Draws the sprite of the actor at its current position.
DrawEntity 29365 CALL 29244
DisplayEntity_4 29368 EXX
29369 XOR A
29370 LD (24005),A
29373 LD C,A
29374 JP MaskSprite
This entry point is used by the routine at 29220.
DisplayEntity_5 29377 LD A,(24000)
29380 AND 6
29382 LD C,A
29383 LD A,(24002)
DisplayEntity_6 29386 BIT 6,A
29388 JR Z,DisplayEntity_7
29390 SET 3,C
DisplayEntity_7 29392 DEC A
29393 RLCA
29394 RLCA
29395 RLCA
29396 RLCA
29397 AND 240
29399 OR C
29400 LD C,A
29401 LD B,0
29403 LD HL,30458
29406 ADD HL,BC
29407 LD E,(HL)
29408 INC HL
29409 LD D,(HL)
29410 RET
This entry point is used by the routine at 29244.
DisplayEntity_8 29411 LD A,(IX+1)
29414 AND 6
29416 LD C,A
29417 LD A,(IX+0)
29420 JR DisplayEntity_6
View the equivalent code in;
Prev: 29278 Up: Map Next: 29422