Page 1 of 3

View cmd and a command to turn off the window

Posted: Sun Jan 29, 2012 8:43 pm
by lecrafteur
Hello, it's me again, yes I know I'm boring,
I want to ask just two questions:
1.How to display the cmd during games?

2.Existe there a command to close the window?
Thank you in advance

Re: View cmd and a command to turn off the window

Posted: Sun Jan 29, 2012 8:49 pm
by thelinx
1. You can specify the "console" option in your Configuration File.
2. love.event.push("q")

Re: View cmd and a command to turn off the window

Posted: Sun Jan 29, 2012 9:02 pm
by lecrafteur
I put this

Code: Select all

function love.conf()
t.console = true 
t.title = "Survivaliste 0.1a"
t.version = "0.0.1" 
end
Its not work, it shows no cmd :(
otherwise thank you

Re: View cmd and a command to turn off the window

Posted: Sun Jan 29, 2012 9:15 pm
by thelinx
You missed something,

Code: Select all

function love.conf()
should be

Code: Select all

function love.conf(t)

Re: View cmd and a command to turn off the window

Posted: Sun Jan 29, 2012 9:20 pm
by lecrafteur
Thank you but it's still not working :(

Re: View cmd and a command to turn off the window

Posted: Sun Jan 29, 2012 9:32 pm
by Jasoco
Are you on Windows? Console only works on Windows.

On OS X and Linux you need to run it from the Terminal.

Re: View cmd and a command to turn off the window

Posted: Sun Jan 29, 2012 9:33 pm
by lecrafteur
Windows 7

Re: View cmd and a command to turn off the window

Posted: Sun Jan 29, 2012 9:35 pm
by Jasoco
Can you upload your .love?

Re: View cmd and a command to turn off the window

Posted: Sun Jan 29, 2012 9:37 pm
by lecrafteur
Here :D
main.lua
Fichier main
(2.36 KiB) Downloaded 319 times

Re: View cmd and a command to turn off the window

Posted: Sun Jan 29, 2012 9:39 pm
by Jasoco
Have you tried putting your configuration stuff in conf.lua? I didn't know the love.conf() function worked inside main.lua. (I never tested it myself.)