View cmd and a command to turn off the window

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
lecrafteur
Prole
Posts: 19
Joined: Sun Jan 29, 2012 5:03 pm

View cmd and a command to turn off the window

Post 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
User avatar
thelinx
The Strongest
Posts: 857
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

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

Post by thelinx »

1. You can specify the "console" option in your Configuration File.
2. love.event.push("q")
lecrafteur
Prole
Posts: 19
Joined: Sun Jan 29, 2012 5:03 pm

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

Post 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
User avatar
thelinx
The Strongest
Posts: 857
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

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

Post by thelinx »

You missed something,

Code: Select all

function love.conf()
should be

Code: Select all

function love.conf(t)
lecrafteur
Prole
Posts: 19
Joined: Sun Jan 29, 2012 5:03 pm

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

Post by lecrafteur »

Thank you but it's still not working :(
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

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

Post by Jasoco »

Are you on Windows? Console only works on Windows.

On OS X and Linux you need to run it from the Terminal.
lecrafteur
Prole
Posts: 19
Joined: Sun Jan 29, 2012 5:03 pm

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

Post by lecrafteur »

Windows 7
lecrafteur
Prole
Posts: 19
Joined: Sun Jan 29, 2012 5:03 pm

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

Post by lecrafteur »

Here :D
main.lua
Fichier main
(2.36 KiB) Downloaded 316 times
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

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

Post 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.)
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 7 guests