Goo: Gui and Animation library.

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
ljdp
Party member
Posts: 209
Joined: Sat Jan 03, 2009 1:04 pm
Contact:

Goo: Gui and Animation library.

Post by ljdp » Sun Apr 18, 2010 5:23 pm

Goo is a gui lib.
It also includes an animation lib for tweening variables.

It's work in progress but pretty much all of it works (i think).
I'd recommend you read the documentation. (included in download).

Download link:
http://github.com/perky/Goo/zipball/master
Last edited by ljdp on Tue Sep 27, 2011 7:22 pm, edited 1 time in total.

User avatar
kikito
Inner party member
Posts: 3152
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Goo: Gui and Animation library.

Post by kikito » Sun Apr 18, 2010 8:46 pm

I thought to myself - "hey this doesn't look half bad"

Then I looked at the source code ... MiddleClass and MindState are there! Awesome! :ultraglee:

I've got one request though - is there a demo of the system?
When I write def I mean function.

User avatar
ljdp
Party member
Posts: 209
Joined: Sat Jan 03, 2009 1:04 pm
Contact:

Re: Goo: Gui and Animation library.

Post by ljdp » Sun Apr 18, 2010 9:04 pm

Ahh yes, very useful code =]

Sure, fire up main.lua for an example.

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

Re: Goo: Gui and Animation library.

Post by Jasoco » Sun Apr 18, 2010 9:12 pm

I can't run the demo. I get this huge error:

Code: Select all

	[string "main.lua"]:8: module 'goo.goo' not found:
	no field package.preload['goo.goo']
	no file './goo/goo.lua'
	no file '/usr/local/share/lua/5.1/goo/goo.lua'
	no file '/usr/local/share/lua/5.1/goo/goo/init.lua'
	no file '/usr/local/lib/lua/5.1/goo/goo.lua'
	no file '/usr/local/lib/lua/5.1/goo/goo/init.lua'
	no file './goo/goo.so'
	no file '/usr/local/lib/lua/5.1/goo/goo.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
	no file './goo.so'
	no file '/usr/local/lib/lua/5.1/goo.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
	no file "goo.goo.lua" in LOVE game directories.
	stack traceback:
	[string "boot.lua"]:833: in function 'error_printer'
	[string "boot.lua"]:768: in function <[string "boot.lua"]:766>
	[C]: in function 'require'
	[string "main.lua"]:8: in main chunk
	[C]: in function 'require'
	[string "boot.lua"]:282: in function <[string "boot.lua"]:215>
	[C]: in function 'xpcall'
	[string "boot.lua"]:838: in main chunk

User avatar
ljdp
Party member
Posts: 209
Joined: Sat Jan 03, 2009 1:04 pm
Contact:

Re: Goo: Gui and Animation library.

Post by ljdp » Sun Apr 18, 2010 9:32 pm

you unzipped it?

User avatar
bartbes
Sex machine
Posts: 4944
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Goo: Gui and Animation library.

Post by bartbes » Sun Apr 18, 2010 9:36 pm

Try goo/goo, there are some problems with the love loader.

EDIT: Which I hopefully just fixed in the repo.

User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Goo: Gui and Animation library.

Post by vrld » Sun Apr 18, 2010 9:58 pm

Nicely done, would recommend, A++ :ultraglee:
I had to change line 6,7 in main.lua to

Code: Select all

require 'MiddleClass'
require 'MindState'
though.

Edit:
Any change to get an onHover callback? This would be nice to add 'sound haptics'
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine

User avatar
ljdp
Party member
Posts: 209
Joined: Sat Jan 03, 2009 1:04 pm
Contact:

Re: Goo: Gui and Animation library.

Post by ljdp » Sun Apr 18, 2010 10:08 pm

There's an enterHover function you can use, if you want to override this do:

Code: Select all

function object:enterHover()
  self.class.enterHover( self )
  -- do ya thing
end

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

Re: Goo: Gui and Animation library.

Post by Jasoco » Mon Apr 19, 2010 2:46 am

ljdp wrote:you unzipped it?
Of course I did. Then I named the folder I got with .love and run that and that's the error it gives me. It's trying to look in some weird Linux-y sounding folders for files. And is looking for ones I can't even find in the archive.

Edit: Fixed it. For some reason you were requiring "goo.goo" and "anim.anim" instead of "goo/goo" and "anim/anim".

User avatar
bartbes
Sex machine
Posts: 4944
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Goo: Gui and Animation library.

Post by bartbes » Mon Apr 19, 2010 6:01 am

Stop ignoring me, I told you that was a bug in love, which I fixed.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests