New to Lua and LOVE... interactive console?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 5
- Joined: Mon Oct 27, 2014 6:59 am
New to Lua and LOVE... interactive console?
I heard Lua is interactive. Is there some kind of interactive console available for LOVE games to try stuff in?
Re: New to Lua and LOVE... interactive console?
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".
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".
- 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?
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.
- 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?
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
https://github.com/hamsterready/love-console
Who is online
Users browsing this forum: Bing [Bot] and 12 guests