Search found 2058 matches

by raidho36
Mon Jun 17, 2013 4:21 pm
Forum: Support and Development
Topic: Is there a point to getters and setters in Lua?
Replies: 15
Views: 11161

Re: Is there a point to getters and setters in Lua?

You can actually make your Lua objects' properties private, via closure OO emulaton approach. local function MyClass(init) -- the new instance local self = { -- public fields go in the instance table public_field = 0 } -- private fields are implemented using locals -- they are faster than table acce...
by raidho36
Mon Jun 17, 2013 3:21 pm
Forum: nLÖVE
Topic: Getting it into 'vanilla' love.
Replies: 17
Views: 91142

Re: Getting it into 'vanilla' love.

So this is not "getting rid of OpenGL and pals", it's more like "have backup dudes in case OpenGL and pals fail". Well, this should be pretty great, but I'm not entirely sure how well it will work on ARM devices which are known for lousy floating-point math performance, AFAIK mod...
by raidho36
Mon Jun 17, 2013 3:02 pm
Forum: General
Topic: Avatars: OBEY!
Replies: 763
Views: 1002315

Re: Avatars: OBEY!

Obey or be hugged!
by raidho36
Mon Jun 17, 2013 2:56 pm
Forum: Games and Creations
Topic: SLG
Replies: 38
Views: 16478

Re: SLG

MadByte wrote: What is the glass orb on his head for ? :)
I assume it's an astronaut hemlet sort of thing. :P
by raidho36
Mon Jun 17, 2013 2:50 pm
Forum: Games and Creations
Topic: SLG
Replies: 38
Views: 16478

Re: SLG

But there's nothing to comment on so far, provided you haven't posted the demo. It's just an extremely generic platform game, that's what I can tell from screenshots.
by raidho36
Mon Jun 17, 2013 1:06 pm
Forum: Support and Development
Topic: What is the default line break size?
Replies: 5
Views: 4069

Re: What is the default line break size?

Oh, I got it. You can obtain your height as following:

Code: Select all

local height = yourfont:getHeight * yourfont:getWrap ( textstring ) 
That should do the trick.

Wasn't meant to doublepost, but current member group won't let me edit my posts (or even see them for that matter).
by raidho36
Mon Jun 17, 2013 1:02 pm
Forum: Support and Development
Topic: What is the default line break size?
Replies: 5
Views: 4069

Re: What is the default line break size?

Probably that's because this is font's height, not rendered text one's. If you know exactly how many rows you have, multiply it by font height.
by raidho36
Mon Jun 17, 2013 12:15 pm
Forum: Libraries and Tools
Topic: Lighting Dynamics Demo
Replies: 30
Views: 16954

Re: Lighting Dynamics Demo

Yeah, it's pretty good. Once I did almost exactly the same thing with GameMaker, but due to it's exceptional performance my demo was nowhere close to what's seen on that video regardless vast efforts to keep it fastest possible. Oh well. I think I'd rewrote it for löve once I get used to it. Was con...