lovecmd - interact with the console

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

lovecmd - interact with the console

Post by Ulydev »

Hey there,

I made this tiny library for a project I'm working on.

Image

It lets you register commands and execute them by typing in the console.

Code: Select all

local cmd = require("lovecmd")

function love.load()
  cmd.load() --init library
end

function love.update(dt)
  cmd.update() --update library
end

cmd:on("myCommand", function()
  print("it works!")
end)
Check it out on https://github.com/Ulydev/lovecmd
User avatar
Tjakka5
Party member
Posts: 243
Joined: Thu Dec 26, 2013 12:17 pm

Re: lovecmd - interact with the console

Post by Tjakka5 »

Very interesting. I'll end up using this.
Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 217 guests