diff --git a/mods/move_tools.js b/mods/move_tools.js new file mode 100644 index 00000000..8a3bc940 --- /dev/null +++ b/mods/move_tools.js @@ -0,0 +1,63 @@ +elements.move_up = { + color: "#1C0000", + tool: function(pixel) { + tryMove(pixel,pixel.x,pixel.y-1); + }, + category: "tools", +}, + +elements.move_down = { + color: "#000038", + tool: function(pixel) { + tryMove(pixel,pixel.x,pixel.y+1); + }, + category: "tools", +}, + +elements.move_left = { + color: "#007000", + tool: function(pixel) { + tryMove(pixel,pixel.x-1,pixel.y); + }, + category: "tools", +}, + +elements.move_right = { + color: "#000E00", + tool: function(pixel) { + tryMove(pixel,pixel.x+1,pixel.y); + }, + category: "tools", +}, + +elements.move_up_left = { + color: "#E00000", + tool: function(pixel) { + tryMove(pixel,pixel.x-1,pixel.y-1); + }, + category: "tools", +}, + +elements.move_down_left = { + color: "#0001C0", + tool: function(pixel) { + tryMove(pixel,pixel.x-1,pixel.y+1); + }, + category: "tools", +}, + +elements.move_up_right = { + color: "#038000", + tool: function(pixel) { + tryMove(pixel,pixel.x+1,pixel.y-1); + }, + category: "tools", +}, + +elements.move_down_right = { + color: "#000007", + tool: function(pixel) { + tryMove(pixel,pixel.x+1,pixel.y+1); + }, + category: "tools", +} \ No newline at end of file