consistent indentation

This commit is contained in:
lustlion 2022-02-26 03:56:53 +01:00
parent 42cf9cfec8
commit 1580dc3463
38 changed files with 2071 additions and 2071 deletions

View File

@ -1,6 +1,6 @@
Arrow = Entity:New(x,y) Arrow = Entity:New(x,y)
function Arrow:New(x,y,rotation,speed) function Arrow:New(x,y,rotation,speed)
local o = Entity:New(x,y) local o = Entity:New(x,y)
o.type = "arrow" o.type = "arrow"
@ -30,7 +30,7 @@ Arrow = Entity:New(x,y)
setmetatable(o, self) setmetatable(o, self)
self.__index = self self.__index = self
return o return o
end end
function Arrow:DrawBackground() function Arrow:DrawBackground()
self:Draw(self.body) self:Draw(self.body)

View File

@ -1,6 +1,6 @@
CursedBook = Entity:New(x,y) CursedBook = Entity:New(x,y)
function CursedBook:New(x,y) function CursedBook:New(x,y)
local o = Entity:New(x,y) local o = Entity:New(x,y)
o.type = "cursed_book" o.type = "cursed_book"
@ -35,7 +35,7 @@ CursedBook = Entity:New(x,y)
setmetatable(o, self) setmetatable(o, self)
self.__index = self self.__index = self
return o return o
end end
function CursedBook:Smart() function CursedBook:Smart()
self.target.x = main_Player.pos.x - main_Player.target_offset.x self.target.x = main_Player.pos.x - main_Player.target_offset.x

View File

@ -1,6 +1,6 @@
Fairy = Entity:New(x,y) Fairy = Entity:New(x,y)
function Fairy:New(x,y) function Fairy:New(x,y)
local o = Entity:New(x,y) local o = Entity:New(x,y)
o.type = "fairy" o.type = "fairy"
@ -32,7 +32,7 @@ Fairy = Entity:New(x,y)
setmetatable(o, self) setmetatable(o, self)
self.__index = self self.__index = self
return o return o
end end
function Fairy:Smart() function Fairy:Smart()

View File

@ -1,6 +1,6 @@
Kupo = Entity:New(x,y) Kupo = Entity:New(x,y)
function Kupo:New(x,y) function Kupo:New(x,y)
local o = Entity:New(x,y) local o = Entity:New(x,y)
o.type = "kupo" o.type = "kupo"
@ -36,7 +36,7 @@ Kupo = Entity:New(x,y)
setmetatable(o, self) setmetatable(o, self)
self.__index = self self.__index = self
return o return o
end end
function Kupo:Smart() function Kupo:Smart()
self.light.pos.x = self.pos.x-self.target_offset.x self.light.pos.x = self.pos.x-self.target_offset.x

View File

@ -1,7 +1,7 @@
Particle = Entity:New(x,y) Particle = Entity:New(x,y)
LoadedObjects.Particles = {} LoadedObjects.Particles = {}
function Particle:New(x,y,particle_data) function Particle:New(x,y,particle_data)
local o = Entity:New(x,y) local o = Entity:New(x,y)
o.pos = {x = x, y = y} o.pos = {x = x, y = y}
@ -51,7 +51,7 @@ LoadedObjects.Particles = {}
setmetatable(o, self) setmetatable(o, self)
self.__index = self self.__index = self
return o return o
end end
function Particle:Kill() function Particle:Kill()
if self.light ~= nil then if self.light ~= nil then
@ -66,7 +66,7 @@ function Particle:Kill()
table.remove(LoadedObjects.Particles,self.id) table.remove(LoadedObjects.Particles,self.id)
end end
self = nil self = nil
end end
function Particle:HandleAnimation() function Particle:HandleAnimation()
self.timer = self.timer + current_dt self.timer = self.timer + current_dt

View File

@ -1,7 +1,7 @@
Player = Entity:New(x,y) Player = Entity:New(x,y)
function Player:New(x,y) function Player:New(x,y)
local o = Entity:New(x,y) local o = Entity:New(x,y)
o.type = "player" o.type = "player"
@ -69,7 +69,7 @@
setmetatable(o, self) setmetatable(o, self)
self.__index = self self.__index = self
return o return o
end end
function Player:Smart() function Player:Smart()
self:LightAdjust(self.target_offset.x,self.target_offset.y) self:LightAdjust(self.target_offset.x,self.target_offset.y)

View File

@ -1,6 +1,6 @@
Particle = Entity:New(x,y) Particle = Entity:New(x,y)
function Particle:New(x,y,particle_data) function Particle:New(x,y,particle_data)
local o = Entity:New(x,y) local o = Entity:New(x,y)
o.pos = {x = x, y = y} o.pos = {x = x, y = y}
@ -44,7 +44,7 @@ Particle = Entity:New(x,y)
setmetatable(o, self) setmetatable(o, self)
self.__index = self self.__index = self
return o return o
end end
function Particle:Kill() function Particle:Kill()
if self.light ~= nil then if self.light ~= nil then