naming conventions act 2: the end
This commit is contained in:
@@ -1,20 +1,18 @@
|
||||
HookAnchor = Entity:new()
|
||||
|
||||
function HookAnchor:new(x,y,hookDistance)
|
||||
function HookAnchor:new(x,y,hook_distance)
|
||||
local o = Entity:new(x,y)
|
||||
|
||||
o.type = "hook_anchor"
|
||||
|
||||
o.pos = {x = x, y = y}
|
||||
o.hookDistance = hookDistance or 100
|
||||
o.hook_distance = hook_distance or 100
|
||||
-- animations
|
||||
o.body = Animation:new(animation.fairy.flying)
|
||||
o:centerOffset(o.body)
|
||||
o:createBox(o.body)
|
||||
|
||||
|
||||
table.insert(LoadedObjects.Entities,o)
|
||||
o.id = #LoadedObjects.Entities
|
||||
o:id()
|
||||
|
||||
setmetatable(o, self)
|
||||
self.__index = self
|
||||
@@ -33,7 +31,7 @@ function HookAnchor:drawBackground()
|
||||
"fill",
|
||||
-Camera.pos.x + self.pos.x,
|
||||
-Camera.pos.y + self.pos.y,
|
||||
self.hookDistance
|
||||
self.hook_distance
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user