11 lines
No EOL
230 B
Lua
11 lines
No EOL
230 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 = npcSprites[name][color]
|
|
})
|
|
end |