chroma_solstice/switch.lua
2015-03-15 05:26:47 -04:00

17 lines
No EOL
353 B
Lua

require "entity"
Switch = class("Switch", Entity)
function Switch:initialize(x, y, color)
print("hey!!", x, y, color)
print(color)
Entity.initialize(self, {
x = x,
y = y,
sizeX = 1,
sizeY = 1,
color = color,
collision = "none", --switches are floor elements that can't be pushed or bloc movement!!
sprite = switchSprite[color]
})
end