chroma_solstice/box.lua

24 lines
No EOL
304 B
Lua

require "entity"
Box = class("Box", Entity)
function Box:initialize(x, y, color)
Entity.initialize(self, {
x = x,
y = y,
name = "box",
sizeX = 1,
sizeY = 1,
color = color,
collision = "moveable",
sprite = sprites.box[color]
})
end
function Box:update()
end
function Box:tick()
end