Prev: BD72 Up: Map Next: BE6D
BDC3: Graphic Layout: Ghost
Ghost. Complex entity slot 20 at StateData_Complex_20 uses this layout when armed. Scripts at BBE0 load GraphicLayout_Ghost. BBFC loads the BOO layout at GraphicLayout_GhostBoo. The entry sets graphic set 04 then cycles GraphicLayout_GhostFrame1 and GraphicLayout_GhostFrame2.
GraphicLayout_Ghost BDC3 DEFB $F4,$04 Set the graphic set to 04.
BDC5 DEFB $F3,$00,$03,$E8,$BD,$03,$BE,$E8,$BD Increment the index and jump to one of GraphicLayout_GhostFrame1, GraphicLayout_GhostFrame2, GraphicLayout_GhostFrame1.
BDCE DEFB $03,$BE
BOO.
layout-bdd0
GraphicLayout_GhostBoo BDD0 DEFB $F4,$04 Set the graphic set to 04.
BDD2 DEFB $FA,$01,$FF Move the cursor by -01 horizontally and 01 vertically.
BDD5 DEFB $36,$07,$21 Draw tile 36 with INK: WHITE, PAPER: BLACK (07) and move right by 01, keeping the background paper.
BDD8 DEFB $37,$07,$21 Draw tile 37 with INK: WHITE, PAPER: BLACK (07) and move right by 01, keeping the background paper.
BDDB DEFB $38,$07,$1E Draw tile 38 with INK: WHITE, PAPER: BLACK (07) and move left by 02 and down by 01, keeping the background paper.
BDDE DEFB $39,$07,$21 Draw tile 39 with INK: WHITE, PAPER: BLACK (07) and move right by 01, keeping the background paper.
BDE1 DEFB $3A,$07,$21 Draw tile 3A with INK: WHITE, PAPER: BLACK (07) and move right by 01, keeping the background paper.
BDE4 DEFB $3B,$07,$21 Draw tile 3B with INK: WHITE, PAPER: BLACK (07) and move right by 01, keeping the background paper.
BDE7 DEFB $FF Load the stored coordinates and return.
Ghost frame 01.
layout-bde8
GraphicLayout_GhostFrame1 BDE8 DEFB $FA,$00,$FF Move the cursor by -01 horizontally and 00 vertically.
BDEB DEFB $32,$05,$24 Draw tile 32 with INK: CYAN, PAPER: BLACK (05) and move right by 04, keeping the background paper.
BDEE DEFB $32,$85,$1C Draw tile 32 with INK: CYAN, PAPER: BLACK, MIRRORED (85) and move left by 04 and down by 01, keeping the background paper.
BDF1 DEFB $00,$2D,$24 Draw tile 00 with INK: CYAN, PAPER: CYAN (2D) and move right by 04.
BDF4 DEFB $00,$2D,$1C Draw tile 00 with INK: CYAN, PAPER: CYAN (2D) and move left by 04 and down by 01.
BDF7 DEFB $33,$05,$24 Draw tile 33 with INK: CYAN, PAPER: BLACK (05) and move right by 04, keeping the background paper.
BDFA DEFB $33,$85,$21 Draw tile 33 with INK: CYAN, PAPER: BLACK, MIRRORED (85) and move right by 01, keeping the background paper.
BDFD DEFB $FA,$FD,$FD Move the cursor by -03 horizontally and -03 vertically.
BE00 DEFB $F8,$1B,$BE Jump to the layout at GraphicLayout_GhostBody.
Ghost frame 02.
layout-be03
GraphicLayout_GhostFrame2 BE03 DEFB $FA,$01,$FF Move the cursor by -01 horizontally and 01 vertically.
BE06 DEFB $34,$05,$24 Draw tile 34 with INK: CYAN, PAPER: BLACK (05) and move right by 04, keeping the background paper.
BE09 DEFB $34,$85,$1C Draw tile 34 with INK: CYAN, PAPER: BLACK, MIRRORED (85) and move left by 04 and down by 01, keeping the background paper.
BE0C DEFB $00,$2D,$24 Draw tile 00 with INK: CYAN, PAPER: CYAN (2D) and move right by 04.
BE0F DEFB $00,$2D,$1C Draw tile 00 with INK: CYAN, PAPER: CYAN (2D) and move left by 04 and down by 01.
BE12 DEFB $35,$05,$24 Draw tile 35 with INK: CYAN, PAPER: BLACK (05) and move right by 04, keeping the background paper.
BE15 DEFB $35,$85,$21 Draw tile 35 with INK: CYAN, PAPER: BLACK, MIRRORED (85) and move right by 01, keeping the background paper.
BE18 DEFB $FA,$FC,$FD Move the cursor by -03 horizontally and -04 vertically.
Ghost body.
layout-be1b
GraphicLayout_GhostBody BE1B DEFB $F5,$03,$27,$28,$5E Set the next graphic index from a random list.
BE20 DEFB $00,$05,$1F Draw a random tile from the list at GraphicLayout_GhostBody with INK: CYAN, PAPER: BLACK (05) and move left by 01 and down by 01, keeping the background paper.
BE23 DEFB $29,$05,$21 Draw tile 29 with INK: CYAN, PAPER: BLACK (05) and move right by 01, keeping the background paper.
BE26 DEFB $00,$2D,$21 Draw tile 00 with INK: CYAN, PAPER: CYAN (2D) and move right by 01.
BE29 DEFB $29,$85,$1E Draw tile 29 with INK: CYAN, PAPER: BLACK, MIRRORED (85) and move left by 02 and down by 01, keeping the background paper.
BE2C DEFB $2A,$45,$21 Draw tile 2A with INK: CYAN, PAPER: BLACK (45) and move right by 01, keeping the background paper.
BE2F DEFB $2B,$45,$21 Draw tile 2B with INK: CYAN, PAPER: BLACK (45) and move right by 01, keeping the background paper.
BE32 DEFB $2A,$C5,$1E Draw tile 2A with INK: CYAN, PAPER: BLACK, MIRRORED (C5) and move left by 02 and down by 01, keeping the background paper.
BE35 DEFB $00,$2D,$21 Draw tile 00 with INK: CYAN, PAPER: CYAN (2D) and move right by 01.
BE38 DEFB $00,$2D,$21 Draw tile 00 with INK: CYAN, PAPER: CYAN (2D) and move right by 01.
BE3B DEFB $00,$2D,$1E Draw tile 00 with INK: CYAN, PAPER: CYAN (2D) and move left by 02 and down by 01.
BE3E DEFB $2C,$05,$21 Draw tile 2C with INK: CYAN, PAPER: BLACK (05) and move right by 01, keeping the background paper.
BE41 DEFB $00,$2D,$21 Draw tile 00 with INK: CYAN, PAPER: CYAN (2D) and move right by 01.
BE44 DEFB $2C,$85,$1F Draw tile 2C with INK: CYAN, PAPER: BLACK, MIRRORED (85) and move left by 01 and down by 01, keeping the background paper.
BE47 DEFB $F3,$00,$04,$52,$BE,$59,$BE,$52,$BE,$63,$BE Increment the index and jump to one of GraphicLayout_GhostTailDown, GraphicLayout_GhostTailLeft, GraphicLayout_GhostTailDown, GraphicLayout_GhostTailRight.
Ghost tail pointing down.
layout-be52
GraphicLayout_GhostTailDown BE52 DEFB $2D,$05,$20 Draw tile 2D with INK: CYAN, PAPER: BLACK (05) and move down by 01, keeping the background paper.
BE55 DEFB $2E,$05,$21 Draw tile 2E with INK: CYAN, PAPER: BLACK (05) and move right by 01, keeping the background paper.
BE58 DEFB $FF Load the stored coordinates and return.
Ghost tail pointing left.
layout-be59
GraphicLayout_GhostTailLeft BE59 DEFB $2F,$05,$1F Draw tile 2F with INK: CYAN, PAPER: BLACK (05) and move left by 01 and down by 01, keeping the background paper.
BE5C DEFB $30,$05,$21 Draw tile 30 with INK: CYAN, PAPER: BLACK (05) and move right by 01, keeping the background paper.
BE5F DEFB $31,$05,$21 Draw tile 31 with INK: CYAN, PAPER: BLACK (05) and move right by 01, keeping the background paper.
BE62 DEFB $FF Load the stored coordinates and return.
Ghost tail pointing right.
layout-be63
GraphicLayout_GhostTailRight BE63 DEFB $2F,$85,$20 Draw tile 2F with INK: CYAN, PAPER: BLACK, MIRRORED (85) and move down by 01, keeping the background paper.
BE66 DEFB $31,$85,$21 Draw tile 31 with INK: CYAN, PAPER: BLACK, MIRRORED (85) and move right by 01, keeping the background paper.
BE69 DEFB $30,$85,$21 Draw tile 30 with INK: CYAN, PAPER: BLACK, MIRRORED (85) and move right by 01, keeping the background paper.
BE6C DEFB $FF Load the stored coordinates and return.
Prev: BD72 Up: Map Next: BE6D