oops
This commit is contained in:
parent
dd5a664aff
commit
9d4f650156
|
|
@ -620,6 +620,7 @@
|
||||||
"moves": 0,
|
"moves": 0,
|
||||||
"age": 0,
|
"age": 0,
|
||||||
},
|
},
|
||||||
|
hidden: true,
|
||||||
},
|
},
|
||||||
"water": {
|
"water": {
|
||||||
color: "#2167ff",
|
color: "#2167ff",
|
||||||
|
|
@ -4166,6 +4167,7 @@
|
||||||
conduct: 1,
|
conduct: 1,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
function hexToRGB(hex) {
|
function hexToRGB(hex) {
|
||||||
|
|
@ -4269,7 +4271,7 @@
|
||||||
function deletePixel(x,y) {
|
function deletePixel(x,y) {
|
||||||
// remove pixelMap[x][y] from currentPixels
|
// remove pixelMap[x][y] from currentPixels
|
||||||
currentPixels.splice(currentPixels.indexOf(pixelMap[x][y]),1);
|
currentPixels.splice(currentPixels.indexOf(pixelMap[x][y]),1);
|
||||||
pixelMap[x][y].del = true;
|
if (pixelMap[x][y]) {pixelMap[x][y].del = true;}
|
||||||
delete pixelMap[x][y];
|
delete pixelMap[x][y];
|
||||||
/*for (var i = 0; i < currentPixels.length; i++) {
|
/*for (var i = 0; i < currentPixels.length; i++) {
|
||||||
if (currentPixels[i].x == x && currentPixels[i].y == y) {
|
if (currentPixels[i].x == x && currentPixels[i].y == y) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue