Skip to content

Instantly share code, notes, and snippets.

@phrohdoh
Last active August 29, 2015 14:03
Show Gist options
  • Save phrohdoh/169b1064efc47344f968 to your computer and use it in GitHub Desktop.
Save phrohdoh/169b1064efc47344f968 to your computer and use it in GitHub Desktop.
LTTP Tile Collision
[Flags]
enum CollisionData
{
None = 0,
TopLeft = 1,
TopRight = 2,
BottomLeft = 4,
BottomRight = 8,
TopHalf = TopLeft | TopRight,
BottomHalf = BottomLeft | BottomRight,
LeftHalf = TopLeft | BottomLeft,
RightHalf = TopRight | BottomRight
}
[Flags]
enum InteractionData
{
None = 0,
TileDamagable = 1,
PlayerDamagable = 2,
Pickup = 4,
JumpDown = 8,
Climb = 16,
Warp = 32,
PushPull = 64
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment