Merge pull request #4 from Guard13007/master

Fixed translate in postshaders.lua example
This commit is contained in:
Tim Anema 2014-10-27 19:03:21 -04:00
commit 3e25bb9a18

View File

@ -60,15 +60,15 @@ end
function love.update(dt)
love.window.setTitle("Light vs. Shadow Engine (FPS:" .. love.timer.getFPS() .. ")")
if love.keyboard.isDown("up") then
if love.keyboard.isDown("down") then
y = y - dt * 200
elseif love.keyboard.isDown("down") then
elseif love.keyboard.isDown("up") then
y = y + dt * 200
end
if love.keyboard.isDown("left") then
if love.keyboard.isDown("right") then
x = x - dt * 200
elseif love.keyboard.isDown("right") then
elseif love.keyboard.isDown("left") then
x = x + dt * 200
end