Page 1 of 7

Goo: Gui and Animation library.

Posted: Sun Apr 18, 2010 5:23 pm
by ljdp
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

Re: Goo: Gui and Animation library.

Posted: Sun Apr 18, 2010 8:46 pm
by kikito
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?

Re: Goo: Gui and Animation library.

Posted: Sun Apr 18, 2010 9:04 pm
by ljdp
Ahh yes, very useful code =]

Sure, fire up main.lua for an example.

Re: Goo: Gui and Animation library.

Posted: Sun Apr 18, 2010 9:12 pm
by Jasoco
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

Re: Goo: Gui and Animation library.

Posted: Sun Apr 18, 2010 9:32 pm
by ljdp
you unzipped it?

Re: Goo: Gui and Animation library.

Posted: Sun Apr 18, 2010 9:36 pm
by bartbes
Try goo/goo, there are some problems with the love loader.

EDIT: Which I hopefully just fixed in the repo.

Re: Goo: Gui and Animation library.

Posted: Sun Apr 18, 2010 9:58 pm
by vrld
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'

Re: Goo: Gui and Animation library.

Posted: Sun Apr 18, 2010 10:08 pm
by ljdp
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

Re: Goo: Gui and Animation library.

Posted: Mon Apr 19, 2010 2:46 am
by Jasoco
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".

Re: Goo: Gui and Animation library.

Posted: Mon Apr 19, 2010 6:01 am
by bartbes
Stop ignoring me, I told you that was a bug in love, which I fixed.