Open main menu

Difference between revisions of "SCUMM/Technical Reference/Object resources"

Add notes on V5 objects (not sure IMHD is correct)
(→‎CDHD: add walk_x and walk_y based on object.h)
(Add notes on V5 objects (not sure IMHD is correct))
Line 74: Line 74:


The OBNA chunk simply contain a null terminated string.
The OBNA chunk simply contain a null terminated string.
=== V5 Objects ===
V5 objects are a lot like V6 Objects, with minor differences.
===== IMHD =====
<pre>
  obj id      : 16le
  num imnn    : 16le
  num zpnn    : 16le (per IMnn block)
  flags        : 8
  unknown      : 8
  x            : 16le
  y            : 16le
  width        : 16le
  height      : 16le
</pre>
IMHD omits the hotspots.
===== CDHD =====
<pre>
  obj id    : 16le
  x        : 8
  y        : 8
  width    : 8
  height    : 8
  flags    : 8
  parent    : 8
  walk_x    : 16le signed
  walk_y    : 16le signed
  actor dir : 8 (direction the actor will look at when standing in front
                of the object)
</pre>
x, y, width, and height are bytes. Their values should be multiplied by 8 (the size of an image strip).
125

edits