Hey guys.
Since I couldn't get any of the existing console projects I found to work, I whipped up my own this evening.
Features and misfeatures:
- Boost software license (you don't have to worry about the license or even include it in your documentation)
- Does not override built-in love functions (but does require you to add hooks to draw, keypressed and mousepressed)
- Mouse scrolling
- Basic line editing
- History
- Looks pretty cool because it takes a screenshot of your game, darkens it and then renders the console over it, like so
Documentation and code is on GitHub. If you don't care about git, you can just download the main file, save it as repl.lua and require it in your project.
love-repl (simple lua console)
Re: love-repl (simple lua console)
A couple folks followed this on GitHub recently, so I felt obligated to tune it up a little. It's now got line editing and a scroll bar. Luxurious! The only major omission right now is word wrapping. Other than that, it's pretty much done.
Re: love-repl (simple lua console)
looks cool.
Re: love-repl (simple lua console)
Wouldn't it be simpler to just draw a semi opaque rectangle over the screen instead of the screenshot? Haven't looked at the code or tested it, but that seems like a simpler solution.
- Ranguna259
- Party member
- Posts: 911
- Joined: Tue Jun 18, 2013 10:58 pm
- Location: I'm right next to you
Re: love-repl (simple lua console)
http://love2d.org/forums/viewtopic.php? ... it=debuger go to the last page for the latest version.
Who is online
Users browsing this forum: Semrush [Bot] and 5 guests