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,15 +1,15 @@
Canvas = {class = "Canvas"}
function Canvas:New(name)
local o = {}
o.name = name
o.width = game.width/game.scale
o.height = game.height/game.scale
o.canvas = love.graphics.newCanvas(o.width,o.height)
local o = {}
o.name = name
o.width = game.width/game.scale
o.height = game.height/game.scale
o.canvas = love.graphics.newCanvas(o.width,o.height)
setmetatable(o, self)
setmetatable(o, self)
self.__index = self
return o
return o
end
function Canvas:Recreate()
@@ -19,7 +19,7 @@ end
function Canvas:Reset()
love.graphics.setCanvas(self.canvas)
love.graphics.setBlendMode("replace")
love.graphics.setBlendMode("replace")
love.graphics.setColor(0,0,0,0)
love.graphics.rectangle(
"fill",
@@ -39,11 +39,11 @@ end
function Canvas:DrawingEnd()
love.graphics.setCanvas()
love.graphics.setBlendMode("alpha")
love.graphics.setColor(1,1,1,1)
love.graphics.setColor(1,1,1,1)
end
function Canvas:Draw()
love.graphics.draw(self.canvas)
love.graphics.draw(self.canvas)
end
require "code/canvasses/darkness"