New to Lua and LOVE... interactive console?

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
kidfingers
Prole
Posts: 5
Joined: Mon Oct 27, 2014 6:59 am

New to Lua and LOVE... interactive console?

Post by kidfingers »

I heard Lua is interactive. Is there some kind of interactive console available for LOVE games to try stuff in? :crazy:
User avatar
ivan
Party member
Posts: 1911
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: New to Lua and LOVE... interactive console?

Post by ivan »

Lua is an interpreted language.
This means that code can be evaluated after you start your program using "loadstring".
That's probably how the "interactive demo" works on the Lua website.
Sure, with Love2D you can just pass the keyboard input to "loadstring".
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: New to Lua and LOVE... interactive console?

Post by Robin »

You'll want to use a library for that, there are a few published on these forums. They're usually called debugging consoles.
Help us help you: attach a .love.
User avatar
ejmr
Party member
Posts: 302
Joined: Fri Jun 01, 2012 7:45 am
Location: South Carolina, U.S.A.
Contact:

Re: New to Lua and LOVE... interactive console?

Post by ejmr »

I agree with Robin, and just wanted to add here is one library I have used in the past which was both easy and pleasant to use:

https://github.com/hamsterready/love-console
ejmr :: Programming and Game-Dev Blog, GitHub
南無妙法蓮華經
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], pgimeno and 76 guests