2015-03-25 01:38:53 -04:00
|
|
|
require "entity"
|
|
|
|
|
|
|
|
|
|
GenericMoveable = class("GenericMoveable", Entity)
|
|
|
|
|
|
2015-03-25 04:22:10 -04:00
|
|
|
function GenericMoveable:initialize(x, y, color, sprite, name)
|
2015-03-25 01:38:53 -04:00
|
|
|
Entity.initialize(self, {
|
2015-03-25 04:22:10 -04:00
|
|
|
name = name,
|
2015-03-25 01:38:53 -04:00
|
|
|
x = x,
|
|
|
|
|
y = y,
|
|
|
|
|
color = color,
|
|
|
|
|
collision = "moveable",
|
|
|
|
|
sprite = sprite
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function GenericMoveable:update()
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function GenericMoveable:tick()
|
|
|
|
|
|
|
|
|
|
end
|