Hocus Pocus Image format
Posted: June 21st, 2016, 4:39 am
Hi everyone,
I am developing an open source clone of Hocus Pocus game, but I found a problem with IMG forman into DAT file. Following the content of this link http://www.shikadi.net/moddingwiki/Hocu ... age_Format, I could not understand the last sentence:
"The image data can be divided into four blocks, each containing iWidth4 × iHeight bytes, with each byte being a colour index into the palette. The indices in the first block are for those pixels where x mod 4 = 0, the data from the second block for pixels where x mod 4 = 1, and so on."
Can someone explain me that it does mean?
Greetings, thanks.
I am developing an open source clone of Hocus Pocus game, but I found a problem with IMG forman into DAT file. Following the content of this link http://www.shikadi.net/moddingwiki/Hocu ... age_Format, I could not understand the last sentence:
"The image data can be divided into four blocks, each containing iWidth4 × iHeight bytes, with each byte being a colour index into the palette. The indices in the first block are for those pixels where x mod 4 = 0, the data from the second block for pixels where x mod 4 = 1, and so on."
Can someone explain me that it does mean?
Greetings, thanks.