Jump to content

Map file: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
Line 41: Line 41:
   tile_effects effect;
   tile_effects effect;
   u8 obj;
   u8 obj;
   tile_stairs stairs : 4;
   u8 stairs_and_height;  // top 4 bits = stairs, bottom 4 bits = height
  u8 height : 4;
};
};


Line 60: Line 59:


enum tile_stairs : u8 {
enum tile_stairs : u8 {
   none = 0,
   none = 0x00,
   vertical = 1,  // from south -> north
   vertical = 0x10,  // from south -> north
   horizontal = 2, // from east -> west
   horizontal = 0x20, // from east -> west
};
};
</syntaxhighlight>
</syntaxhighlight>