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,9 +1,9 @@
|
||||
HookAnchor = Entity:new()
|
||||
HookAnchor.type = "HookAnchor"
|
||||
|
||||
function HookAnchor:new(x,y,hook_distance)
|
||||
local o = Entity:new(x,y)
|
||||
|
||||
o.type = "hook_anchor"
|
||||
|
||||
o.pos = {x = x, y = y}
|
||||
o.hook_distance = hook_distance or 100
|
||||
|
||||
Reference in New Issue
Block a user