Changes

Jump to: navigation, search

Speccy Port

105 bytes added, 12:48, 1 October 2012
/* Graphics with transparency */
=====Graphics with transparency=====
A common way to do this is on the Spectrum is to store 1 byte of mask, followed by 1 byte of pixel data, and to repeat this for the width of the spritedivided by 8. (Each byte representing a 8 pixel wide single line slice of the sprite).
If we consider a sprite which is 16x16. Each byte contains 8 pixels. 2 bytes would be needed for pixel data and 2 bytes for mask. The total storage space required would be (2+2)*8 = 32 bytes.
2,541
edits