17 lines
No EOL
353 B
Lua
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 |