diff --git a/wired_door.lua b/wired_door.lua index b780e14..c137247 100644 --- a/wired_door.lua +++ b/wired_door.lua @@ -1,7 +1,5 @@ require "door" -local Wire = require "wire" - WiredDoor = class("WiredDoor", Door) function WiredDoor:initialize(x, y, color, circuitId) @@ -18,13 +16,3 @@ function WiredDoor:setPowered(powered, canClose) end self:refreshSprites() end - -function WiredDoor:draw(channel) - Entity.draw(self, channel) - if not self.sprites[channel] then return end - local p = self:getDrawPos() - local color = Wire.color(self.circuitId) - love.graphics.setColor(color[1], color[2], color[3], 1) - love.graphics.setLineWidth(math.max(1, drawScale)) - love.graphics.circle("line", p.x + 8 * drawScale, p.y + 8 * drawScale, 3 * drawScale) -end diff --git a/wired_switch.lua b/wired_switch.lua index cc8030d..e98d088 100644 --- a/wired_switch.lua +++ b/wired_switch.lua @@ -6,12 +6,3 @@ function WiredSwitch:initialize(x, y, color) Switch.initialize(self, x, y, color) self.wired = true end - -function WiredSwitch:draw(channel) - Entity.draw(self, channel) - if not self.sprites[channel] then return end - local p = self:getDrawPos() - love.graphics.setColor(1, 1, 1, 0.9) - love.graphics.setLineWidth(math.max(1, drawScale)) - love.graphics.rectangle("line", p.x + 5 * drawScale, p.y + 5 * drawScale, 6 * drawScale, 6 * drawScale) -end