kill dead code

This commit is contained in:
Your Name 2026-08-07 01:05:08 -04:00
parent a8b469876d
commit 7fa9171ba1
9 changed files with 72 additions and 187 deletions

View file

@ -2,13 +2,6 @@ require "entity"
Switch = class("Switch", Entity)
Switch.static.sprites = {
red = love.graphics.newImage("art/game/switch_r.png"),
green = love.graphics.newImage("art/game/switch_g.png"),
blue = love.graphics.newImage("art/game/switch_b.png"),
pressed = love.graphics.newImage("art/game/switch_pressed.png")
}
function Switch:initialize(x, y, color)
Entity.initialize(self, {
x = x,
@ -16,7 +9,7 @@ function Switch:initialize(x, y, color)
color = color,
collision = "none", --switches are floor elements that can't be pushed or bloc movement!!
cellShape = {{x = 1, y = 1}},
sprite = sprites.switch[color]
sprite = loadSprite("art/game/switch_" .. color:sub(1, 1) .. ".png")
})
self.activated = false