Make palette and screen vars global so the API can access them (when I make it)

This commit is contained in:
Robert Miles 2018-07-23 16:04:37 -04:00
parent 03dc4ae9c0
commit 803a008054
1 changed files with 2 additions and 2 deletions

View File

@ -1,13 +1,13 @@
_G.CONFIG = require("conf").properties
local log = require("log")
local pal = require("palette").getPalette("CADE-15")
_G.pal = require("palette").getPalette("CADE-15")
local getSandboxEnv = require("sandbox")
function sandbox(f)
setfenv(f,getSandboxEnv())
end
function love.load()
require("cindy").applyPatch()
scr = love.graphics.newCanvas(256,240)
_G.scr = love.graphics.newCanvas(256,240)
love.graphics.setCanvas(scr)
pal.setColor(10)
love.graphics.rectangle("fill",0,0,5,5)