consistent indentation
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user