public/js-roguelike-skeleton/src/fov-rot.js
function(direction){
            var coord = RL.Util.getOffsetCoordsFromDirection(direction);
            return [coord.x, coord.y];
        }
function(direction){
            var coord = RL.Util.getOffsetCoordsFromDirection(direction);
            return [coord.x, coord.y];
        }
function ( direction ) { var coord = RL . Util . getOffsetCoordsFromDirection ( direction ) ; return [ coord . x , coord . y ] ; }
Converts a string direction to an rot direction
@method directionStringToArray
@param {String} direction - Direction of fov (used as default) (not used for fieldRange 360) valid directions: ['up', 'down', 'left', 'right', 'up_left', 'up_right', 'down_left', 'down_right'].
@return {Array} [x, y]
Converts a string direction to an rot direction