Search found 290 matches

by alberto_lara
Sat Apr 22, 2017 10:35 pm
Forum: Support and Development
Topic: [SOLVED] Bezier Curves, how to trace a line?
Replies: 21
Views: 488

Re: [SOLVED] Bezier Curves, how to trace a line?

I know it's already solved but maybe you could try a tweening library the next time, flux is a nice option :)
by alberto_lara
Tue Apr 11, 2017 3:34 pm
Forum: Libraries and Tools
Topic: GÖÖi, an Android-Oriented GUI Library
Replies: 86
Views: 12853

Re: GÖÖi, an Android-Oriented GUI Library

I'm going to check that out, thanks for the heads up!
by alberto_lara
Mon Apr 10, 2017 3:09 pm
Forum: Libraries and Tools
Topic: GÖÖi, an Android-Oriented GUI Library
Replies: 86
Views: 12853

Re: GÖÖi, an Android-Oriented GUI Library

Hey, sorry for the delay... and you're right, you should use gooi.setCanvas(myCanvas) right after you create the canvas for your game (this changes gooi.sx and gooi.sy)
by alberto_lara
Mon Mar 13, 2017 8:27 pm
Forum: Libraries and Tools
Topic: GÖÖi, an Android-Oriented GUI Library
Replies: 86
Views: 12853

Re: GÖÖi, an Android-Oriented GUI Library

Hey guys just to let you know I just released version 0.0.3 of GÖÖi, the main changes are these: Added multiline labels Now labels can have a text with new line ("\n") characters, multiline alignment works fine now. Added multiline buttons Same for buttons Modal improvements Modals can be created li...
by alberto_lara
Tue Mar 07, 2017 9:59 pm
Forum: Support and Development
Topic: [Solved] Unable to read compressed file
Replies: 9
Views: 284

Re: Unable to read compressed file

Holy crap, thanks for that last comment! It works fine now with this approach: function love.load() dataComp = love.math.compress([[ data = { {[1] = 32432, [2] = 3423}, {[1] = 32432, [2] = 3423}, {[1] = 32432, [2] = 3423}, {[1] = 32432, [2] = 3423}, {[1] = 32432, [2] = 3423}, {[1] = 32432, [2] = 342...
by alberto_lara
Tue Mar 07, 2017 9:26 pm
Forum: Support and Development
Topic: [Solved] Unable to read compressed file
Replies: 9
Views: 284

Re: Unable to read compressed file

Also, for decompressing, there's the fittingly named love.math.decompress that goes with the compress function. I'm aware of this, but I don't really know if this is the right way (I guess not, should I do first the conversion thing? if so, how can I convert that dumped data to a lua table again?) ...
by alberto_lara
Tue Mar 07, 2017 9:16 pm
Forum: Support and Development
Topic: [Solved] Unable to read compressed file
Replies: 9
Views: 284

Re: Unable to read compressed file

I need to read the compressed data and then decompress it, sorry, I didn't mention that. Any ideas of how can I do this?
by alberto_lara
Tue Mar 07, 2017 9:09 pm
Forum: Support and Development
Topic: [Solved] Unable to read compressed file
Replies: 9
Views: 284

Re: Unable to read compressed file

That was the first thing I thought as well, but if you comment this line: print(tostring(love.filesystem.read("test1"))) then you get the "data compressed:" text, so the "ok" flag is = true. The weird thing is, if I try to read the file, then I get no prints, like if "ok" is = false, but if the read...
by alberto_lara
Tue Mar 07, 2017 8:30 pm
Forum: Support and Development
Topic: [Solved] Unable to read compressed file
Replies: 9
Views: 284

[Solved] Unable to read compressed file

Hi guys, I'm not fully familiarized with the math or filesystem API and I'm stuck here: function love.load() dataComp = love.math.compress("dsff sd 87sd f9f7 sd9 fsd") ok = love.filesystem.write("test1", dataComp) if ok then print("data compressed:") print(tostring(love.filesystem.read("test1"))) en...