mirror of
https://github.com/tanema/light_world.lua.git
synced 2024-12-24 20:24:19 +00:00
small changes
This commit is contained in:
parent
8aacf0f69c
commit
654deb165c
@ -73,7 +73,6 @@ function love.update(dt)
|
||||
end
|
||||
|
||||
function love.draw()
|
||||
--camera:setScale(scale)
|
||||
camera:draw(function(l,t,w,h)
|
||||
love.graphics.setColor(255, 255, 255)
|
||||
love.graphics.rectangle("fill", 0, 0, 2000, 2000)
|
||||
@ -83,7 +82,6 @@ function love.draw()
|
||||
love.graphics.polygon("fill", rectangleTest:getPoints())
|
||||
love.graphics.setColor(255, 255, 255)
|
||||
love.graphics.draw(image, 64 - image:getWidth() * 0.5, 64 - image:getHeight() * 0.5)
|
||||
|
||||
lightWorld:drawShine(l,t,w,h)
|
||||
lightWorld:drawPixelShadow(l,t,w,h)
|
||||
lightWorld:drawGlow(l,t,w,h)
|
||||
|
@ -590,7 +590,6 @@ function body:drawGlow(l,t,w,h)
|
||||
love.graphics.setColor(0, 0, 0)
|
||||
end
|
||||
|
||||
--glow has no translation compensation?!
|
||||
if self.type == "circle" then
|
||||
love.graphics.circle("fill", self.x, self.y, self.radius)
|
||||
elseif self.type == "rectangle" then
|
||||
@ -626,7 +625,6 @@ function body:drawRefraction(l,t,w,h)
|
||||
|
||||
love.graphics.setColor(0, 0, 0)
|
||||
|
||||
-- no translation compensation again?
|
||||
if not self.refractive then
|
||||
if self.type == "circle" then
|
||||
love.graphics.circle("fill", self.x, self.y, self.radius)
|
||||
|
@ -40,7 +40,6 @@ light_world.refractionShader:send("screen", {love.window.getWidth(), love.window
|
||||
light_world.reflectionShader:send("screen", {love.window.getWidth(), love.window.getHeight()})
|
||||
|
||||
function light_world:init()
|
||||
self.scale = 1
|
||||
self.last_buffer = nil
|
||||
|
||||
self.lights = {}
|
||||
|
Loading…
Reference in New Issue
Block a user