UNPKG

matrix-map

Version:

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

10 lines (8 loc) 265 B
const getSouthEastNeighbor = function(id){ let southEastNeighbor = null; let south = this.getSouthNeighbor(id); let east = this.getEastNeighbor(south); nortEastNeighbor= east; return southEastNeighbor; } export default getSouthEastNeighbor