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

Updated G1 Elements Layout (markdown)

mrmbernardi
2024-07-08 05:27:13 +10:00
parent 5e7c837b31
commit d7af641fc3

@@ -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:...`