naming conventions act 2: the end
This commit is contained in:
@@ -29,8 +29,7 @@ function CursedBook:new(x,y)
|
||||
o.light_range = 500
|
||||
o.light = Light:new(o.pos.x,o.pos.y,o.light_range,2,HEX2RGB("#fe00d1"))
|
||||
|
||||
table.insert(LoadedObjects.Entities,o)
|
||||
o.id = #LoadedObjects.Entities
|
||||
o:id()
|
||||
|
||||
setmetatable(o, self)
|
||||
self.__index = self
|
||||
@@ -38,8 +37,8 @@ function CursedBook:new(x,y)
|
||||
end
|
||||
|
||||
function CursedBook:doLogic()
|
||||
self.target.x = main_Player.pos.x - main_Player.target_offset.x
|
||||
self.target.y = main_Player.pos.y - main_Player.target_offset.y
|
||||
self.target.x = main_player.pos.x - main_player.target_offset.x
|
||||
self.target.y = main_player.pos.y - main_player.target_offset.y
|
||||
local distance_x = self.target.x - self.pos.x
|
||||
local distance_y = self.target.y - self.pos.y
|
||||
local angle = GetAngleFromVector(distance_x,distance_y)
|
||||
|
||||
Reference in New Issue
Block a user