love-repl (simple lua console)

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
ioddly
Prole
Posts: 2
Joined: Sun Jan 06, 2013 5:19 am

love-repl (simple lua console)

Post by ioddly »

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
y189M.png
y189M.png (21.58 KiB) Viewed 438 times
FUvf6.png
FUvf6.png (30.54 KiB) Viewed 438 times
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.
ioddly
Prole
Posts: 2
Joined: Sun Jan 06, 2013 5:19 am

Re: love-repl (simple lua console)

Post by ioddly »

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.
jjmafiae
Party member
Posts: 1331
Joined: Tue Jul 24, 2012 8:22 am

Re: love-repl (simple lua console)

Post by jjmafiae »

looks cool.
User avatar
veethree
Inner party member
Posts: 877
Joined: Sat Dec 10, 2011 7:18 pm

Re: love-repl (simple lua console)

Post by veethree »

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.
User avatar
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)

Post by Ranguna259 »

http://love2d.org/forums/viewtopic.php? ... it=debuger go to the last page for the latest version.
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests