how create profiles

General discussion about LÖVE, Lua, game development, puns, and unicorns.
reza10203045
Prole
Posts: 4
Joined: Thu Sep 03, 2009 12:25 pm

Re: how create profiles

Post by reza10203045 » Sun Sep 13, 2009 9:28 am

do you have source code for example.

User avatar
kalle2990
Party member
Posts: 245
Joined: Sat Sep 12, 2009 1:17 pm
Location: Sweden

Re: how create profiles

Post by kalle2990 » Sun Sep 13, 2009 9:29 am

I didn't know about this function when I started with my framework...
So now I've counted how long each character that I added is in paint, it's 101 characters!
I replaced it with a function that supports å, ä and ö (and in upper case) by replacing them with a and o, I should have researched a little first... :cry:

User avatar
Jasoco
Inner party member
Posts: 3655
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: how create profiles

Post by Jasoco » Sun Sep 13, 2009 4:17 pm

But it doesn't seem to deal with wrapping fonts. It couldn't tell me where the end of a string would be if it went 300 pixels, then wrapped to the next line. But this will kind of do for now.

User avatar
kalle2990
Party member
Posts: 245
Joined: Sat Sep 12, 2009 1:17 pm
Location: Sweden

Re: how create profiles

Post by kalle2990 » Sun Sep 13, 2009 4:33 pm

Am I correct that love.graphics.drawf() is using font:getWidth(), or is it using exactly the same thing but not in that function?

Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests