chroma_solstice/npc.lua

11 lines
No EOL
231 B
Lua

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
sprite = sprites.npc[name][color]
})
end