35
edits
(Started a page on SCUMM box resources) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
box data is stored as rtMatrix resource #2 | box data is stored as rtMatrix resource #2 | ||
== SCUMM V0 (C64) == | |||
TODO | |||
<pre> | |||
left_x : (1 byte) | |||
right_x : (1 byte) | |||
upper_y : (1 byte) | |||
lower_y : (1 byte) | |||
mask : (1 byte) | |||
</pre> | |||
== SCUMM V1 and V2 == | |||
The boxes are stored as part of [[SCUMM/Technical_Reference/Room resources#Boxes|the room resource]]. | |||
<pre> | |||
uy : (1 byte) | |||
ly : (1 byte) | |||
ulx : (1 byte) | |||
urx : (1 byte) | |||
llx : (1 byte) | |||
lrx : (1 byte) | |||
mask : (1 byte) | |||
flags : (1 byte) | |||
</pre> | |||
== SCUMM V3 == | |||
TODO | |||
== SCUMM V4 == | == SCUMM V4 == | ||
Line 23: | Line 53: | ||
scale : (2 bytes) | scale : (2 bytes) | ||
</pre> | </pre> | ||
Note that "ulx" means "upper left x", "lry" means "lower right y", and so on. | |||
The mask indicates which Z plane should mask this box. The flags are used for certain parameters: | The mask indicates which Z plane should mask this box. The flags are used for certain parameters: | ||
* 0x08 : X flip | * 0x08 : X flip | ||
Line 47: | Line 79: | ||
box : 8 | box : 8 | ||
0xFF : 8 | 0xFF : 8 | ||
</pre> | |||
== SCUMM V8 == | |||
=== BOXD === | |||
The BOXD resource starts with 4 bytes indicating the number of boxes in the room. Then for each box a record of the following format follows (all data little endian): | |||
<pre> | |||
ulx : (4 bytes) | |||
uly : (4 bytes) | |||
urx : (4 bytes) | |||
ury : (4 bytes) | |||
lrx : (4 bytes) | |||
lry : (4 bytes) | |||
llx : (4 bytes) | |||
lly : (4 bytes) | |||
mask : (4 byte) | |||
flags : (4 byte) | |||
scaleSlot : (4 bytes) | |||
scale : (4 bytes) | |||
unknown : (4 bytes) | |||
unknown : (4 bytes) | |||
</pre> | </pre> |
edits