Rehandled Darkness and Lights. Refactored lots of stuff. Rewritten shaders.
This commit is contained in:
11
main.lua
11
main.lua
@@ -22,20 +22,15 @@ function love.load()
|
||||
game = {
|
||||
scale = 2,
|
||||
width = love.graphics.getWidth(),
|
||||
height = love.graphics.getHeight(),
|
||||
paused = false
|
||||
height = love.graphics.getHeight()
|
||||
}
|
||||
|
||||
require "code/require"
|
||||
|
||||
logPrint(loveInitLog)
|
||||
loveInitLog = nil
|
||||
Canvas = {
|
||||
Darkness = CreateDarkness()
|
||||
}
|
||||
love.graphics.setCanvas(Canvas.Darkness)
|
||||
SetDarkness()
|
||||
love.graphics.setCanvas()
|
||||
Canvas = {}
|
||||
Darkness.Create()
|
||||
|
||||
Camera.width = game.width
|
||||
Camera.height = game.height
|
||||
|
||||
Reference in New Issue
Block a user