A console thing

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
zeddy
Prole
Posts: 8
Joined: Mon Jul 07, 2008 11:03 am

A console thing

Post 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:
Image

(*ahem* ignore the background)
Image

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
Last edited by zeddy on Sun Jun 28, 2009 10:04 am, edited 3 times in total.
User avatar
Merkoth
Party member
Posts: 186
Joined: Mon Feb 04, 2008 11:43 pm
Location: Buenos Aires, Argentina

Re: A console thing

Post by Merkoth »

Wow, very handy indeed, nice work :)
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: A console thing

Post by rude »

Me like it a lot!

There's even command history! ^-^)/
User avatar
mike
Administrator
Posts: 364
Joined: Mon Feb 04, 2008 5:24 pm

Re: A console thing

Post 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...
Now posting IN STEREO (where available)
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: A console thing

Post by rude »

Well ... yeah, but not nearly as good as this.
User avatar
farvardin
Party member
Posts: 167
Joined: Sat Jun 28, 2008 6:46 pm

Re: A console thing

Post by farvardin »

I have just a "change me I dare you" when I launch the ConsoleTest.love. What am I missing?
User avatar
zeddy
Prole
Posts: 8
Joined: Mon Jul 07, 2008 11:03 am

Re: A console thing

Post 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 ^^
User avatar
farvardin
Party member
Posts: 167
Joined: Sat Jun 28, 2008 6:46 pm

Re: A console thing

Post 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!
User avatar
zeddy
Prole
Posts: 8
Joined: Mon Jul 07, 2008 11:03 am

Re: A console thing

Post 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?
User avatar
farvardin
Party member
Posts: 167
Joined: Sat Jun 28, 2008 6:46 pm

Re: A console thing

Post by farvardin »

yes, it's working with f1, thanks for the tips.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 11 guests