Page 1 of 3
A console thing
Posted: Mon Jul 07, 2008 12:47 pm
by zeddy
Hi,
I knocked up a fairly basic console sort of thing.
You can enter lua statements and whatnot.. now you might actually use the 'Continue' button on the BSOL (blue screen of love)!
Hopefully, you'll find it useful ;]
Some pictures:
(*ahem* ignore the background)
An example and the lua script if you can't be bothered opening the .love to get Console.lua:
ConsoleTest.love
Console.lua
EDIT: Just changed/fixed a couple of things, and stuck it on google pages
EDIT 2: Updated file links
Re: A console thing
Posted: Mon Jul 07, 2008 1:50 pm
by Merkoth
Wow, very handy indeed, nice work
Re: A console thing
Posted: Mon Jul 07, 2008 2:01 pm
by rude
Me like it a lot!
There's even command history! ^-^)/
Re: A console thing
Posted: Mon Jul 07, 2008 5:07 pm
by mike
Rude, didn't we have a console-like thing built into löve a really long time ago? I remember something about it...
Re: A console thing
Posted: Mon Jul 07, 2008 5:30 pm
by rude
Well ... yeah, but not nearly as good as this.
Re: A console thing
Posted: Mon Jul 07, 2008 6:59 pm
by farvardin
I have just a "change me I dare you" when I launch the ConsoleTest.love. What am I missing?
Re: A console thing
Posted: Mon Jul 07, 2008 7:02 pm
by zeddy
farvardin wrote:I have just a "change me I dare you" when I launch the ConsoleTest.love. What am I missing?
Hey, you can hit tilde (~) key to toggle the console. Try typing something like g_printText = "new text" to set the string that's being drawn
Re: A console thing
Posted: Mon Jul 07, 2008 7:45 pm
by farvardin
I don't know if it's because I'm on linux or it's using an US keyboard, but it's not working. In a windows virtual machine with virtualbox, it's working though (and the keyboard is qwerty)
It looks cool anyway!
Re: A console thing
Posted: Tue Jul 08, 2008 5:15 pm
by zeddy
farvardin wrote:I don't know if it's because I'm on linux or it's using an US keyboard, but it's not working. In a windows virtual machine with virtualbox, it's working though (and the keyboard is qwerty)
It looks cool anyway!
Hm It's not the key checking by any chance? Maybe try changing it to love.key_f1 or something in keypressed()
Does it just not display at all?
Re: A console thing
Posted: Tue Jul 08, 2008 6:03 pm
by farvardin
yes, it's working with f1, thanks for the tips.