Hey Guys, first-time LOVE user here.
Since LOVE2D is built on Lua, can I use print() to send debugging info to the console window? I'm running Windows 7 32-bit.
Printing to console
-
- Prole
- Posts: 3
- Joined: Sat Jan 31, 2015 3:57 pm
Re: Printing to console
Here is my code. When I run this, nothing is printed to the console.
Code: Select all
function love.load ()
love.window.setTitle ("Title Goes Here...")
canUseCanvas = love.graphics.isSupported ("canvas")
print (canUseCanvas)
end
- HugoBDesigner
- Party member
- Posts: 403
- Joined: Mon Feb 24, 2014 6:54 pm
- Location: Above the Pocket Dimension
- Contact:
Re: Printing to console
You need to have conf.lua. Inside it, have:
Code: Select all
function love.conf(t)
t.console = true
end
-
- Prole
- Posts: 3
- Joined: Sat Jan 31, 2015 3:57 pm
Re: Printing to console
That worked. Thanks.HugoBDesigner wrote:You need to have conf.lua. Inside it, have:Code: Select all
function love.conf(t) t.console = true end
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest