wowowowowowowo so much stuff
This commit is contained in:
parent
fe21cb61e3
commit
2f40eaf000
249 changed files with 391 additions and 20 deletions
11
npc.lua
Normal file
11
npc.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue