This commit is contained in:
redlock 2011-03-10 14:42:55 +01:00
parent bf2b6903d5
commit 2b5f567ea3
2 changed files with 18 additions and 1 deletions

View File

@ -8,7 +8,16 @@ sin = math.sin
deg = math.deg
rad = math.rad
State = State or {}
function declare(t)
for i,v in pairs(t) do
if not State[i] then
State[i] = v
_G[i] = State[i]
end
end
end
require "LICK/lib/color"
module(...,package.seeall)

View File

@ -8,7 +8,16 @@ sin = math.sin
deg = math.deg
rad = math.rad
State = State or {}
function declare(t)
for i,v in pairs(t) do
if not State[i] then
State[i] = v
_G[i] = State[i]
end
end
end
require "LICK/lib/color"
module(...,package.seeall)
@ -82,7 +91,6 @@ triangle = love.graphics.triangle
function color(r, g,b,a)
local color={}
local alpha=a or 255