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

Updated G1 Elements Layout (markdown)

Duncan
2014-05-19 09:00:07 -07:00
parent 3327d4ede0
commit dd0d5f917f

@@ -7,7 +7,7 @@ The first y dwords are offsets to the corresponding y line. You use this to jump
`[dword][dword] ...`
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 gap length after it. 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 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:...`