2015-03-14 05:36:02 -04:00
|
|
|
require "entity"
|
|
|
|
|
|
|
|
|
|
Ass = class("Ass", Entity)
|
|
|
|
|
|
|
|
|
|
function Ass:initialize(x, y, color, folder, name)
|
|
|
|
|
local spr = love.graphics.newImage("art/" .. folder .. name .. "_" .. string.lower(string.sub(color, 1, 1)) ..".png")
|
|
|
|
|
Entity.initialize(self, {
|
|
|
|
|
x = x,
|
|
|
|
|
y = y,
|
|
|
|
|
color = color,
|
2015-03-17 01:59:14 -04:00
|
|
|
name = name,
|
2015-03-16 07:39:54 -04:00
|
|
|
cellShape = spriteCells["tree"][color],
|
|
|
|
|
collision = "unmoveable", --player can't push other player
|
2015-03-14 05:36:02 -04:00
|
|
|
sprite = spr
|
|
|
|
|
})
|
|
|
|
|
end
|