mirror of
https://github.com/tanema/light_world.lua.git
synced 2024-12-24 20:24:19 +00:00
Merge pull request #3 from qrap/master
Fixed translation in examples/short.lua
This commit is contained in:
commit
cd2c71a538
@ -83,15 +83,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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user