mirror of
https://github.com/usysrc/LICK.git
synced 2024-11-16 09:34:22 +00:00
updated love.run to 11.3
This commit is contained in:
parent
54395b4e57
commit
3d0b5624ef
6
lick.lua
6
lick.lua
@ -1,6 +1,7 @@
|
||||
-- lick.lua
|
||||
--
|
||||
-- simple LIVECODING environment with löve, overwrites love.run, pressing all errors to the terminal/console
|
||||
-- simple LIVECODING environment for Löve
|
||||
-- overwrites love.run, pressing all errors to the terminal/console
|
||||
|
||||
local lick = {}
|
||||
lick.file = "main.lua"
|
||||
@ -123,7 +124,8 @@ function love.run()
|
||||
-- Call update and draw
|
||||
if update then update(dt) end -- will pass 0 if love.timer is disabled
|
||||
if love.graphics then
|
||||
love.graphics.clear()
|
||||
love.graphics.origin()
|
||||
love.graphics.clear(love.graphics.getBackgroundColor())
|
||||
if draw then draw() end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user