Make palette and screen vars global so the API can access them (when I make it)
This commit is contained in:
parent
03dc4ae9c0
commit
803a008054
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue