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 » Fri Aug 21, 2015 6:39 am

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: 1564
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

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

Post by ivan » Fri Aug 21, 2015 7:09 am

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 » Sat Aug 22, 2015 3:17 pm

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 » Sun Aug 23, 2015 5:05 pm

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: No registered users and 35 guests