UNPKG

matrix-map

Version:

A class object for to aid in the creation of 2D grid games.

10 lines (8 loc) 266 B
const getSouthWestNeighbor = function(id){ let southWestNeighbor = null; let south = this.getSouthNeighbor(id); let west = this.getWestNeighbor(south); southWestNeighbor= west; return southWestNeighbor; } export default getSouthWestNeighbor