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 @@
|
||||
Player = Entity:new()
|
||||
Player.type = "Player"
|
||||
|
||||
function Player:new(x,y)
|
||||
local o = Entity:new(x,y)
|
||||
|
||||
o.type = "player"
|
||||
-- physics
|
||||
o.zero_speed = 0.01 -- gameworld pixels
|
||||
|
||||
@@ -166,7 +166,7 @@ function Player:doLogic()
|
||||
if self.is_hooked then
|
||||
self:unhook()
|
||||
else
|
||||
local anchor = self:checkNearest("hook_anchor",self.hook_distance)
|
||||
local anchor = self:checkNearest("HookAnchor",self.hook_distance)
|
||||
if anchor then
|
||||
self.is_hooked = true
|
||||
self.hook_distance = anchor.hook_distance
|
||||
|
||||
Reference in New Issue
Block a user