14 lines
No EOL
261 B
Lua
14 lines
No EOL
261 B
Lua
npc = class("npc", Entity)
|
|
|
|
function npc:initialize(x, y, color, name)
|
|
Entity.initialize(self, {
|
|
x = x,
|
|
y = y,
|
|
color = color,
|
|
collision = "unmoveable",
|
|
sprite = sprites.npc[name][color],
|
|
onBump = function(self)
|
|
self.tal_ing = true
|
|
end,
|
|
})
|
|
end |