fixed spelling mistakes

This commit is contained in:
Tim Anema 2014-10-27 21:32:51 -04:00
parent 5572d5135a
commit a1d6d33ab5
6 changed files with 14 additions and 14 deletions

View File

@ -15,7 +15,7 @@ local LightWorld = require "lib/light_world"
-- create light world
lightWorld = LightWorld({
drawBackground = drawBackground, --the callback to use for drawing the background
drawForground = drawForground, --the callback to use for drawing the foreground
drawForeground = drawForeground, --the callback to use for drawing the foreground
ambient = {55,55,55}, --the general ambient light in the environment
})

View File

@ -94,7 +94,7 @@ function love.load()
refractionStrength = 16.0,
reflectionVisibility = 0.75,
drawBackground = drawBackground,
drawForground = drawForground
drawForeground = drawForeground
})
mouseLight = lightWorld:newLight(0, 0, 255, 191, 127, lightRange)
@ -357,7 +357,7 @@ function drawBackground(l,t,w,h)
end
end
function drawForground(l,t,w,h)
function drawForeground(l,t,w,h)
love.graphics.setBlendMode("alpha")
for i = 1, phyCnt do
if phyLight[i]:getType() == "polygon" then

View File

@ -12,7 +12,7 @@ function love.load()
-- create light world
lightWorld = LightWorld({
drawBackground = drawBackground,
drawForground = drawForground,
drawForeground = drawForeground,
ambient = {55,55,55},
refractionStrength = 32.0,
reflectionVisibility = 0.75,
@ -65,7 +65,7 @@ function drawBackground(l,t,w,h)
love.graphics.rectangle("fill", -l/scale, -t/scale, w/scale, h/scale)
end
function drawForground(l,t,w,h)
function drawForeground(l,t,w,h)
love.graphics.setColor(255, 255, 255)
local w, h = love.graphics.getWidth(), love.graphics.getHeight()
love.graphics.draw(image, w/2-(image:getWidth()/2), h/2-(image:getHeight()/2))

View File

@ -16,7 +16,7 @@ function love.load()
-- create light world
lightWorld = LightWorld({
drawBackground = drawBackground,
drawForground = drawForground,
drawForeground = drawForeground,
ambient = {55,55,55},
refractionStrength = 32.0,
reflectionVisibility = 0.75,
@ -132,7 +132,7 @@ function drawBackground(l,t,w,h)
love.graphics.rectangle("fill", -l/scale, -t/scale, w/scale, h/scale)
end
function drawForground(l,t,w,h)
function drawForeground(l,t,w,h)
love.graphics.setColor(63, 255, 127)
local cx, cy = circleTest:getPosition()
love.graphics.circle("fill", cx, cy, circleTest:getRadius())

View File

@ -58,7 +58,7 @@ function light_world:init(options)
self.glowDown = false
self.drawBackground = function() end
self.drawForground = function() end
self.drawForeground = function() end
options = options or {}
for k, v in pairs(options) do self[k] = v end
@ -102,7 +102,7 @@ function light_world:draw(l,t,s)
util.drawto(self.render_buffer, l, t, s, function()
self.drawBackground( l,t,w,h,s)
self:drawShadow( l,t,w,h,s)
self.drawForground( l,t,w,h,s)
self.drawForeground( l,t,w,h,s)
self:drawMaterial( l,t,w,h,s)
self:drawShine( l,t,w,h,s)
self:drawPixelShadow(l,t,w,h,s)
@ -280,7 +280,7 @@ end
function light_world:clear()
light_world:clearLights()
light_world:clearBodys()
light_world:clearBodies()
end
-- clear lights
@ -290,7 +290,7 @@ function light_world:clearLights()
end
-- clear objects
function light_world:clearBodys()
function light_world:clearBodies()
self.body = {}
self.isShadows = false
self.isRefraction = false
@ -302,7 +302,7 @@ function light_world:setBackgroundMethod(fn)
end
function light_world:setForegroundMethod(fn)
self.drawForground = fn or function() end
self.drawForeground = fn or function() end
end
-- set ambient color

View File

@ -77,7 +77,7 @@ function exf.drawBackground()
exf.list:draw()
end
function exf.drawForground()
function exf.drawForeground()
love.graphics.setColor(255, 255, 255)
love.graphics.draw(exf.bigball, 800 - 128, 600 - 128, love.timer.getTime(), 1, 1, exf.bigball:getWidth() * 0.5, exf.bigball:getHeight() * 0.5)
end
@ -184,7 +184,7 @@ function exf.resume()
-- create light world
lightWorld = LightWorld({
drawBackground = exf.drawBackground,
drawForground = exf.drawForground
drawForeground = exf.drawForeground
})
lightWorld:setAmbientColor(127, 127, 127)