2015-03-14 05:36:02 -04:00
|
|
|
npc = class("npc", Entity)
|
|
|
|
|
|
|
|
|
|
function npc:initialize(x, y, color, name)
|
|
|
|
|
Entity.initialize(self, {
|
|
|
|
|
x = x,
|
|
|
|
|
y = y,
|
|
|
|
|
color = color,
|
|
|
|
|
collision = "none", --player can't push other player
|
2015-03-15 18:45:24 -04:00
|
|
|
sprite = sprites.npc[name][color]
|
2015-03-14 05:36:02 -04:00
|
|
|
})
|
|
|
|
|
end
|