Prev: DDF8 Up: Map Next: DEF7
DEE1: Set Row Attributes
Used by the routine at ScrollWorld.
Does nothing unless the tiles have just changed or the world is being scrolled in at the start of a life. Sets the attributes of the background for the two rows of the tile at TopTileColour and BottomTileColour.
SetRowAttributes DEE1 LD A,($5C3D) The tiles changed.
DEE4 LD B,A B=A.
DEE5 LD A,($5C3C) The scroll-in flag.
DEE8 OR B Set the bits of A that are set in B.
DEE9 RET Z Return if the zero flag is set.
DEEA LD A,($CE58) The map row.
DEED CALL ChooseRowAttribute Call ChooseRowAttribute.
DEF0 LD ($5C3A),A Update the top-tile colour.
DEF3 LD A,($CE58) The map row.
DEF6 INC A Advance A.
Continue on to ChooseRowAttribute.
Prev: DDF8 Up: Map Next: DEF7