This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var global = self; | |
var Reflect = { | |
global: global | |
}; | |
!function a(b, c, d) { | |
function e(g, h) { | |
if (!c[g]) { | |
if (!b[g]) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getPx('https://s3.amazonaws.com/static.screeps.com/map2/'+ roomName+ '.png', function(err, pixels) { | |
if (err) { | |
throw err; | |
} | |
let kyskip = 50 * 3 * 3 * 4; | |
let kxskip = 3 * 4; | |
for (let yy = 0; yy < 50; ++yy) { | |
for (let xx = 0; xx < 50; ++xx) { | |
let px = pixels.data[xx * kxskip + yy * kyskip] * 0x10000 + pixels.data[xx * kxskip + yy * kyskip + 1] * 0x100 + pixels.data[xx * kxskip + yy * kyskip + 2]; | |
switch (px) { |