Question about the first time call love.graphics.print
Posted: Sat Jul 12, 2014 7:27 am
I wonder know what happened when I use love.graphics.print or love.graphics.printf at the first time.
Why the love.graphics.print altered after the first call? Is there anything needed initialized?
Just curious :-)
Why the love.graphics.print altered after the first call? Is there anything needed initialized?
Just curious :-)
Code: Select all
local a = love.graphics.print
lg.print('SOME TEXTS', ...) -- Call love.graphics.print first time
local b = love.graphics.print
lg.print('SOME TEXTS', ...) -- Call love.graphics.print second time
local c = love.graphics.print
print(a == b) -- false
print(a == c) -- false
print(b == c) -- true (Why only the first call change love.graphics.print?)