IN-game console settings

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
IAsep-TrixI
Citizen
Posts: 89
Joined: Mon Aug 12, 2013 4:22 am
Location: Philippines,Asia

IN-game console settings

Post by IAsep-TrixI »

it's a simple question, and it is my tenth.
How do you put an in-game console setting watermark in your game screen?

kind of like this
QDFH6ad.png
QDFH6ad.png (8.68 KiB) Viewed 152 times
An agent of the free

check out the game I'm doing with Jkash!
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: IN-game console settings

Post by Ranguna259 »

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.
User avatar
Daniel Eakins
Citizen
Posts: 99
Joined: Thu Jul 18, 2013 9:14 pm
Location: France

Re: IN-game console settings

Post by Daniel Eakins »

For my project, I just put this simple command in my love.draw function:

Code: Select all

	love.graphics.print("TEXT"..VARIABLE.."ETC"), 10, 10)
See http://love2d.org/wiki/love.graphics.print .
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: IN-game console settings

Post by Ranguna259 »

Daniel Eakins wrote:For my project, I just put this simple command in my love.draw function:

Code: Select all

	love.graphics.print("TEXT"..VARIABLE.."ETC"), 10, 10)
See http://love2d.org/wiki/love.graphics.print .
You can also do that, I used to add love.graphic.print into a function (I called it debuger()) and then I'd just write debuger() in love.draw()

Code: Select all

function love.draw()
    debuger()
end

function debuger()
    love.graphics.print("TEXT "..VARIABLE.." ETC"), 10, 10)
    love.graphics.print("TEXT 2 "..VARIABLE2.." ETC2"), 10, 25)
end
But know I just use the debuger I linked in my first post, you can run commands like print(var) and it prints the var, it's really helpful
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: Ahrefs [Bot], Bing [Bot] and 7 guests