diff --git a/mods/invisible_wall.js b/mods/invisible_wall.js new file mode 100644 index 00000000..7edeb535 --- /dev/null +++ b/mods/invisible_wall.js @@ -0,0 +1,20 @@ +if(!settings) { + settings = {} +} + +if(!settings.bg) { + settings.bg = "#000000" +} + +elements.invisible_wall = { + color: settings.bg, + behavior: behaviors.WALL, + tick: function(pixel) { + var backgroundColor = hexToRGB(settings.bg); + var rgbValue = "rgb("+backgroundColor.r+","+backgroundColor.g+","+backgroundColor.b+")"; + pixel.color = rgbValue; + }, + hardness: 1, + category: "special", + state: "solid", +}; \ No newline at end of file