the cell indices in explored not yet baked into a minimap's texture - pure, so it can be tested without a renderer
explored
import { newlyRevealed } from '@datamoc/mw_games/two-d/render';const explored = new Set([4, 9, 12]);const alreadyDrawn = new Set([4]);console.log(newlyRevealed(explored, alreadyDrawn)); // [9, 12] Copy
import { newlyRevealed } from '@datamoc/mw_games/two-d/render';const explored = new Set([4, 9, 12]);const alreadyDrawn = new Set([4]);console.log(newlyRevealed(explored, alreadyDrawn)); // [9, 12]
the cell indices in
explorednot yet baked into a minimap's texture - pure, so it can be tested without a renderer