35
edits
(Add V8 box data format) |
|||
(3 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 |
edits