UNPKG

matrix-map

Version:

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

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