FANDOM


Object files contain the graphic data that is displayed in the 3D window for each object. ie: signs, tents, towns, etc... The file is named simply xxx.OBJ where xxx is a number from 000 to 099 or xxx.0BJ for numbers 100 to 199. Note that the extension for objects 100-199 has a zero in it, not an 'O' (oh).

Usage Edit

The object files are standard sprite files with a variable number of frames. Some objects contain frames in a sequence to generate an animation. An OBJ can has as few as one sprite frame (barrels, pedestals, trees) or as many as 24 for objects that are animated (mirror, tent) or have different states (chests). Some OBJ files will contain two separate objects that have a slight variation (pedestals). The CLOUDS.DAT and DARK.DAT files contain the data which indicate what frames are used when viewing the object from the front, back, left side, and right side, whether they're displayed normal or horizontally flipped, and the frames which make up an animation.

The X and Y position, and the direction frame are calculated from the players position and direction and the data loaded from the MAZExxxx.MOB file, and plugged into the appropriate positions in the Drawstruct list.

ExamplesEdit

These images have been cropped in order to fit them on the screen. Images in gray scale are extrapolated from the animation information and are not actually stored in the OBJ file.

File Front Back Left Right
008.OBJ 008 OBJ Front 008 OBJ Back 008 OBJ Left 008 OBJ Right
010.OBJ 010 OBJ RGB 010 OBJ Gray 010 OBJ Gray 010 OBJ Gray


See AlsoEdit

CLOUDS.DAT File
DARK.DAT File
Sprite File Format

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.