constants direction - wxyz-abcd/node-haxball GitHub Wiki

Direction

These values help understand the direction of a movement for an axis. Only designed for room.keyState function to combine seperate directions for x and y axis to generate the value of the key to press. Here is its current definition:

const Direction = {
  Backward: -1,
  Still: 0,
  Forward: 1
};