1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Revert d7af641fc398fa3f08541298ba843ca59919ed93...ac2f0f1166d3d5801c5b0242e949d21da3102952 on G1 Elements Layout

Qy
2024-07-14 23:08:38 +02:00
parent ac2f0f1166
commit ee4d118eec

@@ -11,7 +11,7 @@ The first y words are offsets to the corresponding y line. You use this to jump
`[word][word] ...`
When you have jumped to the correct line there are 2 bytes that inform you of the number of bytes in the next data section and the number of pixels it represents after it (gap length). The reason there are two values for representing the pixels is for empty pixels. To draw the correct image you have to do each section and remember to jump over each gap on the drawing surface. The next line will start immediately at the end of the previous line. If the most significant bit of the no. bytes field is set then this the last data section of a line and a new line will start after this data section.
When you have jumped to the correct line there are 2 bytes that inform you of the number of bytes in the next data section and the number of pixels it represents after it (gap length). The reason there are two values for representing the pixels is for empty pixels. To draw the correct image you have to do each section and remember to jump over each gap on the drawing surface. The gap is measured from the left edge of the sprite, not from the last group of pixels. The next line will start immediately at the end of the previous line. If the most significant bit of the no. bytes field is set then this the last data section of a line and a new line will start after this data section.
`line0:[no. bytes in data 1][gap length 1][data 1 of no. bytes length][no. bytes in gap 2]...line1:...`