📓

Direction

public enum Direction
{
    none, up, down, left, right, upRight, upLeft, downRight, downLeft
}

Simple enum to cover 8 directions to be used anywhere useful. Includes none. The example uses only 4 directions from this enum, but you might only need 2 for a platformer, or 8 for a top downish game. If you need 360 movement, I would recommend using a soft float(e.g sfloat dir = 270;) instead to store the angle