chroma_solstice/npc.lua
2015-03-17 02:15:28 -04:00

14 lines
No EOL
242 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)
end,
})
end