/Love2d-mobile-console

A mobile console to love2d

Primary LanguageLuaBoost Software License 1.0BSL-1.0

Love2d-mobile-console

A indepedent mobile console on version 0.0.5 to use on love2d created by Ayano the Foxy with the help of Choco on 24th may 2023 made with the lua languague

Features

  • simple of use
  • don't need external dependences
  • have a list of commands to use
  • text colors included

How to use

To use the console you need download the code and put it in your program, looks like this

function love.load()
    console = require 'console' --take the console script
    console:new(0, 0) --create a new console  at the position x: 0 y: 0
end

function love.draw()
    console:render() --draw the console in the screen
    console:print("hello world", 0, 0, 0) --draw things on console the text color is r: 0, g: 0, b: 0
    console:print("wow im yellow", "yellow")
end

function love.update(dt)
    console:update() --update the cosole
end

color list

  • red
  • green
  • blue
  • purple
  • yellow
  • cyan