chroma_solstice/switch.lua

17 lines
353 B
Lua
Raw Normal View History

2015-03-15 05:26:47 -04:00
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