Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/ai/petra/mapModule.js
Show First 20 Lines • Show All 187 Lines • ▼ Show 20 Lines | for (let j = 0; j < map.length; ++j) | ||||
continue; | continue; | ||||
map.map[j] = m.border_Mask; | map.map[j] = m.border_Mask; | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
// map.dumpIm("border.png", 5); | // map.dumpIm("border.png", 5); | ||||
return map; | return map; | ||||
}; | }; | ||||
m.debugMap = function(gameState, map) | m.debugMap = function(gameState, map) | ||||
{ | { | ||||
let width = map.width; | let width = map.width; | ||||
let cell = map.cellSize; | let cell = map.cellSize; | ||||
gameState.getEntities().forEach(ent => { | gameState.getEntities().forEach(ent => { | ||||
Show All 17 Lines |
Wildfire Games · Phabricator