From fdad8ee6d61a9c48bb6ca8f6433cb97214d8051f Mon Sep 17 00:00:00 2001 From: Paul Liverman Date: Mon, 27 Oct 2014 12:19:16 -0700 Subject: [PATCH] Fixed translate in postshaders.lua example --- examples/postshaders.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/postshaders.lua b/examples/postshaders.lua index 7b80add..31c32a8 100644 --- a/examples/postshaders.lua +++ b/examples/postshaders.lua @@ -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