commit
248c7e6a11
|
|
@ -146,10 +146,10 @@
|
||||||
"sawdust":"",
|
"sawdust":"",
|
||||||
"hail":"",
|
"hail":"",
|
||||||
"hydrogen":"kon_pi_tawa_kon_mute",
|
"hydrogen":"kon_pi_tawa_kon_mute",
|
||||||
"oxygen":"kon_pi_wile_soweli_ale",
|
"oxygen":"kon_pi_suli_tawa_soweli_ale",
|
||||||
"nitrogen":"",
|
"nitrogen":"",
|
||||||
"helium":"",
|
"helium":"kon_pi_tawa_kon",
|
||||||
"anesthesia":"",
|
"anesthesia":"kon_lape",
|
||||||
"ammonia":"",
|
"ammonia":"",
|
||||||
"liquid_ammonia":"",
|
"liquid_ammonia":"",
|
||||||
"carbon_dioxide":"kon_pi_tan_soweli_ale",
|
"carbon_dioxide":"kon_pi_tan_soweli_ale",
|
||||||
|
|
@ -161,7 +161,7 @@
|
||||||
"stained_glass":"",
|
"stained_glass":"",
|
||||||
"molten_stained_glass":"",
|
"molten_stained_glass":"",
|
||||||
"art":"",
|
"art":"",
|
||||||
"rainbow":"",
|
"rainbow":"kiwen_pi_kule_mute",
|
||||||
"static":"",
|
"static":"",
|
||||||
"border":"poka",
|
"border":"poka",
|
||||||
"clay":"",
|
"clay":"",
|
||||||
|
|
@ -257,10 +257,10 @@
|
||||||
"molten_tin":"",
|
"molten_tin":"",
|
||||||
"molten_lead":"",
|
"molten_lead":"",
|
||||||
"molten_solder":"",
|
"molten_solder":"",
|
||||||
"juice":"",
|
"juice":"telo_kili",
|
||||||
"juice_ice":"",
|
"juice_ice":"kiwen_lete_pi_telo_kili",
|
||||||
"broth":"",
|
"broth":"",
|
||||||
"milk":"",
|
"milk":"telo_walo_pi_soweli_walo_pimeja",
|
||||||
"chocolate_milk":"",
|
"chocolate_milk":"",
|
||||||
"fruit_milk":"",
|
"fruit_milk":"",
|
||||||
"pilk":"",
|
"pilk":"",
|
||||||
|
|
@ -276,13 +276,13 @@
|
||||||
"cheese":"",
|
"cheese":"",
|
||||||
"rotten_cheese":"",
|
"rotten_cheese":"",
|
||||||
"chocolate":"",
|
"chocolate":"",
|
||||||
"grape":"",
|
"grape":"kili_suwi_pi_laso_loje",
|
||||||
"vinegar":"",
|
"vinegar":"",
|
||||||
"herb":"kasi_moku_lili",
|
"herb":"kasi_moku_lili",
|
||||||
"lettuce":"",
|
"lettuce":"",
|
||||||
"pickle":"",
|
"pickle":"",
|
||||||
"tomato":"",
|
"tomato":"kili_pi_suli_loje",
|
||||||
"sauce":"",
|
"sauce":"telo_pi_kili_loje",
|
||||||
"pumpkin":"",
|
"pumpkin":"",
|
||||||
"pumpkin_seed":"",
|
"pumpkin_seed":"",
|
||||||
"corn":"",
|
"corn":"",
|
||||||
|
|
@ -424,7 +424,7 @@
|
||||||
"confetti":"",
|
"confetti":"",
|
||||||
"glitter":"",
|
"glitter":"",
|
||||||
"bead":"",
|
"bead":"",
|
||||||
"color_sand":"",
|
"color_sand":"ko_pi_kule_mute",
|
||||||
"borax":"",
|
"borax":"",
|
||||||
"epsom_salt":"",
|
"epsom_salt":"",
|
||||||
"potassium_salt":"",
|
"potassium_salt":"",
|
||||||
|
|
@ -540,4 +540,4 @@
|
||||||
"blaster": "",
|
"blaster": "",
|
||||||
"propane_ice": "",
|
"propane_ice": "",
|
||||||
"molten_caustic_potash": ""
|
"molten_caustic_potash": ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -540,4 +540,4 @@
|
||||||
"blaster": "",
|
"blaster": "",
|
||||||
"propane_ice": "",
|
"propane_ice": "",
|
||||||
"molten_caustic_potash": ""
|
"molten_caustic_potash": ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -135,6 +135,7 @@
|
||||||
<tr><td>extra_element_info.js</td><td>Adds descriptions to various vanilla elements. Used to provide the functionality that desc now does before it was added to vanilla</td><td>Melecie</td></tr>
|
<tr><td>extra_element_info.js</td><td>Adds descriptions to various vanilla elements. Used to provide the functionality that desc now does before it was added to vanilla</td><td>Melecie</td></tr>
|
||||||
<tr><td>find.js</td><td>Adds a find mode that highlights a chosen element as pulsating red and yellow <a href="https://github.com/R74nCom/sandboxels/commit/de0dc088ab4d928c77587b9d0e3a7d7663e3f94a">(read commit description)</a></td><td>Alice</td></tr>
|
<tr><td>find.js</td><td>Adds a find mode that highlights a chosen element as pulsating red and yellow <a href="https://github.com/R74nCom/sandboxels/commit/de0dc088ab4d928c77587b9d0e3a7d7663e3f94a">(read commit description)</a></td><td>Alice</td></tr>
|
||||||
<tr><td>insane_random_events.js</td><td>Massively buffs random events</td><td>Alice</td></tr>
|
<tr><td>insane_random_events.js</td><td>Massively buffs random events</td><td>Alice</td></tr>
|
||||||
|
<tr><td>invertscroll.js</td><td>Inverts the scroll wheel for adjusting brush size</td><td>SquareScreamYT</td></tr>
|
||||||
<tr><td>moretools.js</td><td>Adds more temperature-modifying tools (±10/tick, ±50/tick, and absolute zero tools)</td><td>Sightnado</td></tr>
|
<tr><td>moretools.js</td><td>Adds more temperature-modifying tools (±10/tick, ±50/tick, and absolute zero tools)</td><td>Sightnado</td></tr>
|
||||||
<tr><td>move_tools.js</td><td>Adds tools that move pixels</td><td>Alice</td></tr>
|
<tr><td>move_tools.js</td><td>Adds tools that move pixels</td><td>Alice</td></tr>
|
||||||
<tr><td>noconfirm.js</td><td>Removes all confirmation pop ups</td><td>mollthecoder</td></tr>
|
<tr><td>noconfirm.js</td><td>Removes all confirmation pop ups</td><td>mollthecoder</td></tr>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
// created by sqec
|
||||||
|
// coming soon: apartments, small houses
|
||||||
|
|
||||||
function building_1_segment() {
|
function building_1_segment() {
|
||||||
if (pixel.foundation = true && pixel.height < pixel.limit) {
|
if (pixel.foundation = true && pixel.height < pixel.limit) {
|
||||||
if (isEmpty(pixel.x+1,pixel.y-pixel.height) &&
|
if (isEmpty(pixel.x+1,pixel.y-pixel.height) &&
|
||||||
|
|
@ -24,6 +27,25 @@ function building_1_segment() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
function clearbase3x5() {
|
||||||
|
if (pixel.clearbase = false && pixel.height < pixel.limit) {
|
||||||
|
pixel.clearbase = true
|
||||||
|
deletePixel(pixel.x-1,pixel.y)
|
||||||
|
deletePixel(pixel.x+1,pixel.y)
|
||||||
|
deletePixel(pixel.x-2,pixel.y)
|
||||||
|
deletePixel(pixel.x+2,pixel.y)
|
||||||
|
deletePixel(pixel.x,pixel.y-1)
|
||||||
|
deletePixel(pixel.x-1,pixel.y-1)
|
||||||
|
deletePixel(pixel.x+1,pixel.y-1)
|
||||||
|
deletePixel(pixel.x-2,pixel.y-1)
|
||||||
|
deletePixel(pixel.x+2,pixel.y-1)
|
||||||
|
deletePixel(pixel.x,pixel.y-2)
|
||||||
|
deletePixel(pixel.x-1,pixel.y-2)
|
||||||
|
deletePixel(pixel.x+1,pixel.y-2)
|
||||||
|
deletePixel(pixel.x-2,pixel.y-2)
|
||||||
|
deletePixel(pixel.x+2,pixel.y-2)
|
||||||
|
}
|
||||||
|
}
|
||||||
function filldirt2x5() {
|
function filldirt2x5() {
|
||||||
var dirtPixelElem = pixelMap[pixel.x][pixel.y+1];
|
var dirtPixelElem = pixelMap[pixel.x][pixel.y+1];
|
||||||
if (!isEmpty(pixel.x,pixel.y+1) && !outOfBounds(pixel.x,pixel.y+1)) {
|
if (!isEmpty(pixel.x,pixel.y+1) && !outOfBounds(pixel.x,pixel.y+1)) {
|
||||||
|
|
@ -47,11 +69,21 @@ function filldirt2x5() {
|
||||||
if (isEmpty(pixel.x-2,pixel.y+2)) {
|
if (isEmpty(pixel.x-2,pixel.y+2)) {
|
||||||
createPixel(dirtPixelElem,pixel.x-2,pixel.y+2);
|
createPixel(dirtPixelElem,pixel.x-2,pixel.y+2);
|
||||||
}
|
}
|
||||||
|
if (isEmpty(pixel.x+1,pixel.y+2)) {
|
||||||
|
createPixel(dirtPixelElem,pixel.x+2,pixel.y+2);
|
||||||
|
}
|
||||||
|
if (isEmpty(pixel.x-1,pixel.y+2)) {
|
||||||
|
createPixel(dirtPixelElem,pixel.x-2,pixel.y+2);
|
||||||
|
}
|
||||||
|
if (isEmpty(pixel.x,pixel.y+2)) {
|
||||||
|
createPixel(dirtPixelElem,pixel.x-2,pixel.y+2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
elements.building_1 = {
|
elements.building_1 = {
|
||||||
color: "#a78d38",
|
color: "#ffc800",
|
||||||
tick: function(pixel) {
|
tick: function(pixel) {
|
||||||
if (!isEmpty(pixel.x,pixel.y+1)) {
|
if (!isEmpty(pixel.x,pixel.y+1)) {
|
||||||
|
clearbase3x5();
|
||||||
if (isEmpty(pixel.x+1,pixel.y) &&
|
if (isEmpty(pixel.x+1,pixel.y) &&
|
||||||
isEmpty(pixel.x-1,pixel.y) &&
|
isEmpty(pixel.x-1,pixel.y) &&
|
||||||
isEmpty(pixel.x+2,pixel.y) &&
|
isEmpty(pixel.x+2,pixel.y) &&
|
||||||
|
|
@ -73,7 +105,7 @@ elements.building_1 = {
|
||||||
createPixel("concrete",pixel.x+2,pixel.y+1);
|
createPixel("concrete",pixel.x+2,pixel.y+1);
|
||||||
createPixel("concrete",pixel.x-2,pixel.y+1);
|
createPixel("concrete",pixel.x-2,pixel.y+1);
|
||||||
createPixel("wood",pixel.x,pixel.y+1);
|
createPixel("wood",pixel.x,pixel.y+1);
|
||||||
pixel.limit = 10 + Math.floor(Math.random() * 5)*2;
|
pixel.limit = 5 + Math.floor(Math.random() * 25)*2;
|
||||||
createPixel("concrete",pixel.x+1,pixel.y);
|
createPixel("concrete",pixel.x+1,pixel.y);
|
||||||
createPixel("concrete",pixel.x-1,pixel.y);
|
createPixel("concrete",pixel.x-1,pixel.y);
|
||||||
createPixel("concrete",pixel.x+2,pixel.y);
|
createPixel("concrete",pixel.x+2,pixel.y);
|
||||||
|
|
@ -93,81 +125,19 @@ elements.building_1 = {
|
||||||
else if (pixel.foundation == true && pixel.height >= pixel.limit) {
|
else if (pixel.foundation == true && pixel.height >= pixel.limit) {
|
||||||
pixel.built = true;
|
pixel.built = true;
|
||||||
}
|
}
|
||||||
if (pixel.built == true) {
|
if (pixel.built == true || pixel.age > 100) {
|
||||||
changePixel(pixel,"wood");
|
changePixel(pixel,"wood");
|
||||||
}
|
}
|
||||||
|
pixel.age++
|
||||||
doDefaults(pixel);
|
doDefaults(pixel);
|
||||||
},
|
},
|
||||||
properties: {
|
properties: {
|
||||||
height:0,
|
height:0,
|
||||||
limit:0,
|
limit:0,
|
||||||
foundation:false,
|
foundation:false,
|
||||||
built:false
|
built:false,
|
||||||
},
|
clearbase:false,
|
||||||
category: "citybuilding",
|
age:0
|
||||||
state: "solid",
|
|
||||||
density: 1500,
|
|
||||||
cooldown: defaultCooldown,
|
|
||||||
seed: true,
|
|
||||||
maxSize: 1,
|
|
||||||
excludeRandom: true,
|
|
||||||
behavior: behaviors.STURDYPOWDER,
|
|
||||||
};
|
|
||||||
elements.building_1_tall = {
|
|
||||||
color: "#d9c243",
|
|
||||||
tick: function(pixel) {
|
|
||||||
if (!isEmpty(pixel.x,pixel.y+1)) {
|
|
||||||
if (isEmpty(pixel.x+1,pixel.y) &&
|
|
||||||
isEmpty(pixel.x-1,pixel.y) &&
|
|
||||||
isEmpty(pixel.x+2,pixel.y) &&
|
|
||||||
isEmpty(pixel.x-2,pixel.y) &&
|
|
||||||
isEmpty(pixel.x+2,pixel.y-1) &&
|
|
||||||
isEmpty(pixel.x-2,pixel.y-1) &&
|
|
||||||
isEmpty(pixel.x+1,pixel.y-1) &&
|
|
||||||
isEmpty(pixel.x-1,pixel.y-1) &&
|
|
||||||
isEmpty(pixel.x,pixel.y-1) &&
|
|
||||||
isEmpty(pixel.x+2,pixel.y-2) &&
|
|
||||||
isEmpty(pixel.x-2,pixel.y-2) &&
|
|
||||||
isEmpty(pixel.x+1,pixel.y-2) &&
|
|
||||||
isEmpty(pixel.x-1,pixel.y-2) &&
|
|
||||||
isEmpty(pixel.x,pixel.y-2)) {
|
|
||||||
filldirt2x5();
|
|
||||||
movePixel(pixel,pixel.x,pixel.y-1);
|
|
||||||
createPixel("concrete",pixel.x+1,pixel.y+1);
|
|
||||||
createPixel("concrete",pixel.x-1,pixel.y+1);
|
|
||||||
createPixel("concrete",pixel.x+2,pixel.y+1);
|
|
||||||
createPixel("concrete",pixel.x-2,pixel.y+1);
|
|
||||||
createPixel("wood",pixel.x,pixel.y+1);
|
|
||||||
pixel.limit = 15 + Math.floor(Math.random() * 10)*2;
|
|
||||||
createPixel("concrete",pixel.x+1,pixel.y);
|
|
||||||
createPixel("concrete",pixel.x-1,pixel.y);
|
|
||||||
createPixel("concrete",pixel.x+2,pixel.y);
|
|
||||||
createPixel("concrete",pixel.x-2,pixel.y);
|
|
||||||
createPixel("concrete",pixel.x+1,pixel.y-1);
|
|
||||||
createPixel("concrete",pixel.x-1,pixel.y-1);
|
|
||||||
createPixel("concrete",pixel.x+2,pixel.y-1);
|
|
||||||
createPixel("concrete",pixel.x-2,pixel.y-1);
|
|
||||||
createPixel("concrete",pixel.x,pixel.y-1);
|
|
||||||
pixel.foundation = true;
|
|
||||||
pixel.height = pixel.height+2
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (pixel.foundation == true && pixel.height < pixel.limit) {
|
|
||||||
building_1_segment();
|
|
||||||
}
|
|
||||||
else if (pixel.foundation == true && pixel.height >= pixel.limit) {
|
|
||||||
pixel.built = true;
|
|
||||||
}
|
|
||||||
if (pixel.built == true) {
|
|
||||||
changePixel(pixel,"wood");
|
|
||||||
}
|
|
||||||
doDefaults(pixel);
|
|
||||||
},
|
|
||||||
properties: {
|
|
||||||
height:0,
|
|
||||||
limit:0,
|
|
||||||
foundation:false,
|
|
||||||
built:false
|
|
||||||
},
|
},
|
||||||
category: "citybuilding",
|
category: "citybuilding",
|
||||||
state: "solid",
|
state: "solid",
|
||||||
|
|
@ -203,8 +173,15 @@ elements.small_tree_1 = {
|
||||||
changePixel(pixel,"wood");
|
changePixel(pixel,"wood");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (pixel.age > 50) {
|
||||||
|
changePixel(pixel,"wood");
|
||||||
|
}
|
||||||
|
pixel.age++
|
||||||
doDefaults(pixel);
|
doDefaults(pixel);
|
||||||
},
|
},
|
||||||
|
properties: {
|
||||||
|
age:0
|
||||||
|
},
|
||||||
category: "citybuilding",
|
category: "citybuilding",
|
||||||
state: "solid",
|
state: "solid",
|
||||||
density: 1500,
|
density: 1500,
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
runAfterLoad(function() {
|
||||||
|
if (navigator.platform.toUpperCase().indexOf('MAC')>=0) {
|
||||||
|
settings.invertscroll = false;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
settings.invertscroll = true;
|
||||||
|
}
|
||||||
|
})
|
||||||
Loading…
Reference in New Issue