Skip to content

Commit

Permalink
minor fixes :P
Browse files Browse the repository at this point in the history
  • Loading branch information
2bt committed Mar 7, 2014
1 parent 4ccf9eb commit 692969f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion spalten/field.lua
Expand Up @@ -240,7 +240,7 @@ function Field:update()
-- TODO

if self.state_delay == 0 then
love.event.push "q"
love.event.quit()
end

end
Expand Down
12 changes: 6 additions & 6 deletions spalten/main.lua
Expand Up @@ -5,7 +5,7 @@ require "sound"

function love.keypressed(key)
if key == "escape" then
love.event.push "q"
love.event.quit()

elseif key == "f1" then
wall:record(true)
Expand All @@ -23,8 +23,8 @@ function love.load()
math.randomseed(os.time())
time = love.timer.getTime() * 1000

wall = Wall()
-- wall = Wall("94.45.224.211", 1338, 3, false)
-- wall = Wall()
wall = Wall("10.0.1.2", 1350, 3, false)

fields = {
Field(0, wall.input[1]),
Expand All @@ -39,9 +39,9 @@ end

function love.update(dt)
-- constant 30 FPS
local t = love.timer.getTime() * 1000
time = time + 1000 / 30
love.timer.sleep(time - t)
-- local t = love.timer.getTime() * 1000
-- time = time + 1000 / 30
-- love.timer.sleep(time - t)

wall:update_input()

Expand Down

0 comments on commit 692969f

Please sign in to comment.