sandboxels/mods/move_tools.js

72 lines
1.5 KiB
JavaScript
Raw Normal View History

2022-02-13 01:16:47 -05:00
elements.move_up = {
color: "#1C0000",
tool: function(pixel) {
tryMove(pixel,pixel.x,pixel.y-1);
},
2022-05-21 20:09:06 -04:00
category: "movement tools",
excludeRandom: true,
2022-02-13 01:16:47 -05:00
},
elements.move_down = {
color: "#000038",
tool: function(pixel) {
tryMove(pixel,pixel.x,pixel.y+1);
},
2022-05-21 20:09:06 -04:00
category: "movement tools",
excludeRandom: true,
2022-02-13 01:16:47 -05:00
},
elements.move_left = {
color: "#007000",
tool: function(pixel) {
tryMove(pixel,pixel.x-1,pixel.y);
},
2022-05-21 20:09:06 -04:00
category: "movement tools",
excludeRandom: true,
2022-02-13 01:16:47 -05:00
},
elements.move_right = {
color: "#000E00",
tool: function(pixel) {
tryMove(pixel,pixel.x+1,pixel.y);
},
2022-05-21 20:09:06 -04:00
category: "movement tools",
excludeRandom: true,
2022-02-13 01:16:47 -05:00
},
elements.move_up_left = {
color: "#E00000",
tool: function(pixel) {
tryMove(pixel,pixel.x-1,pixel.y-1);
},
2022-05-21 20:09:06 -04:00
category: "movement tools",
excludeRandom: true,
2022-02-13 01:16:47 -05:00
},
elements.move_down_left = {
color: "#0001C0",
tool: function(pixel) {
tryMove(pixel,pixel.x-1,pixel.y+1);
},
2022-05-21 20:09:06 -04:00
category: "movement tools",
excludeRandom: true,
2022-02-13 01:16:47 -05:00
},
elements.move_up_right = {
color: "#038000",
tool: function(pixel) {
tryMove(pixel,pixel.x+1,pixel.y-1);
},
2022-05-21 20:09:06 -04:00
category: "movement tools",
excludeRandom: true,
2022-02-13 01:16:47 -05:00
},
elements.move_down_right = {
color: "#000007",
tool: function(pixel) {
tryMove(pixel,pixel.x+1,pixel.y+1);
},
2022-05-21 20:09:06 -04:00
category: "movement tools",
excludeRandom: true,
}