chroma_solstice/npc.lua

11 lines
230 B
Lua
Raw Normal View History

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