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,
|
2015-03-16 08:47:08 -04:00
|
|
|
collision = "unmoveable",
|
|
|
|
|
sprite = sprites.npc[name][color],
|
|
|
|
|
onBump = function(self)
|
|
|
|
|
self.tal_ing = true
|
|
|
|
|
end,
|
2015-03-14 05:36:02 -04:00
|
|
|
})
|
|
|
|
|
end
|