Make a command line?

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.
Post Reply
User avatar
Lua Hal
Citizen
Posts: 58
Joined: Tue Jul 12, 2011 10:30 pm

Make a command line?

Post by Lua Hal »

How would I do this?

It basically needs to take one line of love at a time, as entered by a user so I can see what happens when I type 'blah' easily.
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Make a command line?

Post by T-Bone »

You can of course do this with normal lua, if that's enough for you. I don't think LÖVE can work this way, but I could be wrong.
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Make a command line?

Post by vrld »

There are several solutions:
  • LICK by headchant, for livecoding. Executes code once you save a file. This way you can use your favourite editor.
  • love-console by me, a hybrid of livecoding environment and debug console.
  • Debug by kalle2990, which is an ingame console. More targeted at debugging.
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
User avatar
miloguy
Prole
Posts: 32
Joined: Sat Jul 02, 2011 2:09 am

Re: Make a command line?

Post by miloguy »

Code: Select all

local func=loadstring(code_as_string_here)
func()
e.g.

Code: Select all

loadstring("print(\"blah\");")()
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 207 guests