more naming convention
now there are spawn objects! now entity spawns are loaded from level! now entity spawns are saved to level!
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
Kupo = Entity:new()
|
||||
Kupo.type = "Kupo"
|
||||
|
||||
function Kupo:new(x,y)
|
||||
local o = Entity:new(x,y)
|
||||
|
||||
o.type = "kupo"
|
||||
|
||||
o.pos = {x = x, y = y}
|
||||
o.speed = 20
|
||||
o.range = 200
|
||||
@@ -142,7 +141,7 @@ function Kupo:handleAnimation()
|
||||
if self.vel.x ~= 0 then self.sprite_flip.x = math.sign(self.vel.x) end
|
||||
|
||||
self.body:animate()
|
||||
self:Draw(self.body)
|
||||
self:draw(self.body)
|
||||
|
||||
if self.draw_bow == true then
|
||||
self.bow:drawFrame(
|
||||
|
||||
Reference in New Issue
Block a user