Prev: 9962 Up: Map Next: 9980
9970: Eight ways of putting a sprite's pixels on the screen
Chosen by DRAW_SPRITE_PIXELS from the top three bits of the drawing mode. Used only for doors and furniture; creatures are drawn by DRAW_THING. The eight are the eight ways to lay a rectangle down: 0 as stored, 1 mirrored, 2 turned a quarter clockwise, 3 transposed (mirrored across the diagonal), 4 upside down, 5 a half turn, 6 transposed the other way, 7 turned a quarter anticlockwise. A door's mode is its wall, which is how one picture serves all four.
PIXEL_DRAWERS 9970 DEFW BLIT_SPRITE
9972 DEFW BLIT_SPRITE_MIRRORED
9974 DEFW DRAW_TURNED_RIGHT
9976 DEFW DRAW_FLIP_ANTIDIAGONAL
9978 DEFW DRAW_UPSIDE_DOWN
997A DEFW BLIT_SPRITE_FLIPPED
997C DEFW DRAW_FLIP_DIAGONAL
997E DEFW DRAW_TURNED_LEFT
Prev: 9962 Up: Map Next: 9980