Skip to content

Commit

Permalink
made compatible with Löve 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
usysrc committed May 25, 2012
1 parent c01b254 commit 1f917a1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions LICK/lick.lua
Expand Up @@ -9,6 +9,7 @@ lick.file = "main.lua"
lick.debug = false
lick.reset = false
lick.clearFlag = false
lick.sleepTime = (love.canvas) and (0.001) or 1

This comment has been minimized.

Copy link
@vrld

vrld May 26, 2012

should be love.graphics.canvas

This comment has been minimized.

Copy link
@usysrc

usysrc May 26, 2012

Author Owner

should even be love.graphics.newCanvas


function handle(err)
return "ERROR: " .. err
Expand Down Expand Up @@ -96,11 +97,11 @@ function love.run()
dt = love.timer.getDelta()
end
-- if love.update then love.update(dt) end -- will pass 0 if love.timer is disabled
lick.update(dt)
lick.update(dt)
if love.graphics then
if not lick.clearFlag then love.graphics.clear() end
-- if love.draw then love.draw() end
lick.draw()
lick.draw()
end

-- Process events.
Expand All @@ -118,7 +119,7 @@ function love.run()
end
end

if love.timer then love.timer.sleep(1) end
if love.timer then love.timer.sleep(lick.sleepTime) end
if love.graphics then love.graphics.present() end

end
Expand Down

0 comments on commit 1f917a1

Please sign in to comment.