Skip to content

Instantly share code, notes, and snippets.

@jsimmons
Created April 17, 2013 07:09
Show Gist options
  • Save jsimmons/5402347 to your computer and use it in GitHub Desktop.
Save jsimmons/5402347 to your computer and use it in GitHub Desktop.
Block Types
enum tn_block_type
{
// This block is full of nothing!
TN_BLOCK_EMPTY,
// This block is full of its material. Chockers even!
TN_BLOCK_SOLID,
// Only the floor part (lowest 10th) filled with material. Walkable surface.
TN_BLOCK_FLOOR,
// A support that doesn't impede pathing.
TN_BLOCK_PILLAR,
// Stairs in each of the cardinal directions from the current z-level to
// the z-level above.
// If the tile above is not empty then the staircase is obviously unpathable.
TN_BLOCK_STAIR_N,
TN_BLOCK_STAIR_S,
TN_BLOCK_STAIR_E,
TN_BLOCK_STAIR_W,
// Ramp piece facing each cardinal direction. Acts like a stair.
TN_BLOCK_RAMP_N,
TN_BLOCK_RAMP_S,
TN_BLOCK_RAMP_E,
TN_BLOCK_RAMP_W,
// Ramp corner piece with the low point facing the given direction.
TN_BLOCK_RAMP_NE,
TN_BLOCK_RAMP_NW,
TN_BLOCK_RAMP_SE,
TN_BLOCK_RAMP_SW
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment