Add files via upload
This commit is contained in:
parent
4e946c1f8f
commit
045c3845c1
|
|
@ -24,9 +24,9 @@ elements.selective_exploder = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onSelect: function() {
|
onSelect: function() {
|
||||||
var answer2 = prompt("Please input what element to explode.",(explode1Var||undefined));
|
var answer1 = prompt("Please input what element to explode.",(explode1Var||undefined));
|
||||||
if (!answer2) { return }
|
if (!answer1) { return }
|
||||||
explode1Var = answer2;
|
explode1Var = answer1;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
convert11Var = 0;
|
convert11Var = 0;
|
||||||
|
|
@ -41,12 +41,12 @@ elements.converter_tool = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onSelect: function() {
|
onSelect: function() {
|
||||||
var answer3 = prompt("Please input what should element be converted.",(convert11Var||undefined));
|
var answer1 = prompt("Please input what should element be converted.",(convert11Var||undefined));
|
||||||
if (!answer3) { return }
|
if (!answer1) { return }
|
||||||
convert11Var = answer3;
|
convert11Var = answer1;
|
||||||
var answer4 = prompt("Please input what element to convert into.",(convert22Var||undefined));
|
var answer2 = prompt("Please input what element to convert into.",(convert22Var||undefined));
|
||||||
if (!answer4) { return }
|
if (!answer2) { return }
|
||||||
convert22Var = answer4;
|
convert22Var = answer2;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
elements.fast_bomb = {
|
elements.fast_bomb = {
|
||||||
|
|
@ -82,9 +82,9 @@ elements.exclusive_eraser = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onSelect: function() {
|
onSelect: function() {
|
||||||
var answer5 = prompt("Please input what element shouldn't be erased.",(exclude1Var||undefined));
|
var answer1 = prompt("Please input what element shouldn't be erased.",(exclude1Var||undefined));
|
||||||
if (!answer5) { return }
|
if (!answer1) { return }
|
||||||
exclude1Var = answer5;
|
exclude1Var = answer1;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
elements.tenth_heater = {
|
elements.tenth_heater = {
|
||||||
|
|
@ -99,7 +99,7 @@ elements.tenth_heater = {
|
||||||
},
|
},
|
||||||
elements.e_tenth_heater = {
|
elements.e_tenth_heater = {
|
||||||
category: "special",
|
category: "special",
|
||||||
color: "#ff0000",
|
color: "#ff3000",
|
||||||
behavior: behaviors.WALL,
|
behavior: behaviors.WALL,
|
||||||
behaviorOn: [
|
behaviorOn: [
|
||||||
"XX|HT:0.1|XX",
|
"XX|HT:0.1|XX",
|
||||||
|
|
@ -108,4 +108,63 @@ elements.e_tenth_heater = {
|
||||||
],
|
],
|
||||||
ignore: "tenth_heater",
|
ignore: "tenth_heater",
|
||||||
conduct: 1
|
conduct: 1
|
||||||
|
},
|
||||||
|
paint1Var = 0;
|
||||||
|
elements.selective_paint_tool = {
|
||||||
|
color: ["#ff0000","#ff0000","#ff0000","#00ff00","#00ff00","#00ff00","#0000ff","#0000ff","#0000ff"],
|
||||||
|
tool: function(pixel) {
|
||||||
|
if (pixel.element === paint1Var) {
|
||||||
|
if (!shiftDown) {
|
||||||
|
pixel.color = pixelColorPick(pixel,currentColor)
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// convert the hex of currentColor to rgb and set it as a string
|
||||||
|
var rgb = currentColor.replace("#","").match(/.{1,2}/g);
|
||||||
|
for (var i = 0; i < rgb.length; i++) {
|
||||||
|
rgb[i] = parseInt(rgb[i],16);
|
||||||
|
}
|
||||||
|
pixel.color = "rgb(" + rgb.join(",") + ")"
|
||||||
|
}
|
||||||
|
delete pixel.origColor;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onSelect: function() {
|
||||||
|
var answer1 = prompt("Please input what element should be painted.",(paint1Var||undefined));
|
||||||
|
if (!answer1) { return }
|
||||||
|
paint1Var = answer1;
|
||||||
|
},
|
||||||
|
customColor: true,
|
||||||
|
category: "tools",
|
||||||
|
canPlace: false,
|
||||||
|
desc: "Select certain pixels to change color."
|
||||||
|
},
|
||||||
|
paint2Var = 0;
|
||||||
|
elements.exclusive_paint_tool = {
|
||||||
|
color: ["#ff0000","#00ff00","#0000ff","#0000ff","#00ff00","#ff0000"],
|
||||||
|
tool: function(pixel) {
|
||||||
|
if (pixel.element !== paint2Var) {
|
||||||
|
if (!shiftDown) {
|
||||||
|
pixel.color = pixelColorPick(pixel,currentColor)
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// convert the hex of currentColor to rgb and set it as a string
|
||||||
|
var rgb = currentColor.replace("#","").match(/.{1,2}/g);
|
||||||
|
for (var i = 0; i < rgb.length; i++) {
|
||||||
|
rgb[i] = parseInt(rgb[i],16);
|
||||||
|
}
|
||||||
|
pixel.color = "rgb(" + rgb.join(",") + ")"
|
||||||
|
}
|
||||||
|
delete pixel.origColor;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onSelect: function() {
|
||||||
|
var answer1 = prompt("Please input what element should be painted.",(paint2Var||undefined));
|
||||||
|
if (!answer1) { return }
|
||||||
|
paint2Var = answer1;
|
||||||
|
},
|
||||||
|
customColor: true,
|
||||||
|
category: "tools",
|
||||||
|
canPlace: false,
|
||||||
|
desc: "Excludes pixels you don't want to color."
|
||||||
|
//hello
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue