updated love.run to 11.3

This commit is contained in:
usysrc 2021-11-27 21:07:03 +01:00
parent 54395b4e57
commit 3d0b5624ef
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,7 @@
-- lick.lua -- 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 = {} local lick = {}
lick.file = "main.lua" lick.file = "main.lua"
@ -123,7 +124,8 @@ function love.run()
-- Call update and draw -- Call update and draw
if update then update(dt) end -- will pass 0 if love.timer is disabled if update then update(dt) end -- will pass 0 if love.timer is disabled
if love.graphics then if love.graphics then
love.graphics.clear() love.graphics.origin()
love.graphics.clear(love.graphics.getBackgroundColor())
if draw then draw() end if draw then draw() end
end end

View File

@ -11,5 +11,6 @@ function love.update(dt)
end end
function love.draw(dt) function love.draw(dt)
love.graphics.setColor(1,1,0)
love.graphics.circle("fill", 400+100*math.sin(circle.x), 300, 16,16) love.graphics.circle("fill", 400+100*math.sin(circle.x), 300, 16,16)
end end