diff --git a/js/defs.js b/js/defs.js index 5d8ee47..582c6d9 100644 --- a/js/defs.js +++ b/js/defs.js @@ -4,6 +4,7 @@ export const DIRECTIONS = { north: { movement: [0, -1], bit: 0x01, + action: 'up', left: 'west', right: 'east', opposite: 'south', @@ -11,6 +12,7 @@ export const DIRECTIONS = { south: { movement: [0, 1], bit: 0x04, + action: 'down', left: 'east', right: 'west', opposite: 'north', @@ -18,6 +20,7 @@ export const DIRECTIONS = { west: { movement: [-1, 0], bit: 0x08, + action: 'left', left: 'south', right: 'north', opposite: 'east', @@ -25,6 +28,7 @@ export const DIRECTIONS = { east: { movement: [1, 0], bit: 0x02, + action: 'right', left: 'north', right: 'south', opposite: 'west',