I'm trying to implement the missing love feature to draw on different layers.
I have almost finished but I need to improve my way of intercepting love function.
For now I have something like:
Code: Select all
realfunc = love.graphics.rectangle love.graphics.rectangle = function(...) myfunc("something", arg) end myfunc = function(cmd, a) realfunc([i][b]a, a, a, a[/b][/i]) end
I have try to use loadstring but it's not running when I have symbol (table, function, ...) in item of the table.