Skip to content

Instantly share code, notes, and snippets.

@phrohdoh
Last active Aug 29, 2015
Embed
What would you like to do?
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