UNPKG

matrix-map

Version:

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

10 lines (8 loc) 266 B
const getNorthWestNeighbor = function(id){ let northWestNeighbor = null; let north = this.getNorthNeighbor(id); let west = this.getWestNeighbor(north); northWestNeighbor= west; return northWestNeighbor; } export default getNorthWestNeighbor