Prev: 29001 Up: Map Next: 29037
29013: Fetch Sprite
Used by the routine at ActorFindPosDir.
GetDefaultSprite 29013 LD A,(24098) A=24098.
GetSprite 29016 DEC A Calculate offset for sprite lookup table.
29017 SLA A
29019 AND %01111110 Keep only bits 1-6.
29021 LD HL,32518 HL=SpritesTable.
29024 LD C,A Create an offset in BC.
29025 LD B,0
29027 ADD HL,BC HL=SpritesTable + offset.
29028 LD E,(HL) DE=fetch sprite address pointed to by HL.
29029 INC HL
29030 LD D,(HL)
29031 RET Return.
ActorGetSprite 29032 LD A,(IX+0) Load the sprite ID from the currently active actor.
29035 JR GetSprite Jump to GetSprite.
Prev: 29001 Up: Map Next: 29037