Cupid is a debugging shim for Love2d.
- Developer console, displays print messages and executes lua.
- Game error detection and recovery.
- Can render a physics debug layer.
- Reload game sourcecode on the fly automaticly.
- Copy the
cupid.luafile to your project directory.
- Create a
conf.luafile if you don't already have one.
require("cupid")to the top of your
While your game is running, press tilde ( ~ ) to activate the
console. Print commands will show here. Type
reload your game.
By default cupid will monitor all .lua files in the project directory, scanning it every so often. It's somewhat more efficient to turn this off and use UP commands. The remote module listens for console commands on UDP port 10137.
This command works well:
watchmedo-2.7 shell-command --command='echo reload | nc -u localhost 10173' .
Same as Love2D.