moving tools

This commit is contained in:
Lily-129 2022-02-13 01:16:47 -05:00 committed by GitHub
parent 3f5bd5a259
commit b260b47e03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 63 additions and 0 deletions

63
mods/move_tools.js Normal file
View File

@ -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",
}