Search found 702 matches

by Ref
Sun Jun 03, 2012 11:02 pm
Forum: Libraries and Tools
Topic: Navi - a message library (6/11 demo)
Replies: 111
Views: 54865

Re: A message system

I sort of figured that out but your code is much better.
Attached is my attempt to see how far I could push the existing code (definitely not an end product or attempt to steal your thunder.) :joker:
Waiting for rolling text in a box {O^O}
Thanks
by Ref
Sun Jun 03, 2012 8:12 pm
Forum: Libraries and Tools
Topic: Navi - a message library (6/11 demo)
Replies: 111
Views: 54865

Re: A message system

Hi litearc! Not sure the use of '|n' works the way you intended. If '|n' is placed in the string, the resulting text box will have a line break at that point AND a subsiquent line break at the point where the line would have wraped if no '|n' had been inserted - leaving a line fragment. tttttt|n|ttt...
by Ref
Thu May 31, 2012 4:07 pm
Forum: Libraries and Tools
Topic: Navi - a message library (6/11 demo)
Replies: 111
Views: 54865

Re: A message system

Just jumping the gun here. I added to my copy hard coded width & heights for window. Not pretty, but gets the job done. Sure final version will be much more automatic. cfg.w = {200,200,200,100,200,200,200} cfg.h = { 80, 60, 50, 60, 80, 60, 60} Window drawing then becomes: for i = 1, #m do if not...
by Ref
Thu May 31, 2012 3:26 pm
Forum: Libraries and Tools
Topic: setColor Hexadecimal snippet
Replies: 8
Views: 7484

Re: setColor Hexadecimal snippet

I like litearc's approach for hex color conversions

Code: Select all

hex="ff3333ff"
 _,_,r,g,b,a = hex:find('(%x%x)(%x%x)(%x%x)(%x%x)')
print(r,g,b,a)
color = {tonumber(r,16),tonumber(g,16),tonumber(b,16),tonumber(a,16)}
print(unpack(color))
by Ref
Thu May 31, 2012 2:26 am
Forum: Libraries and Tools
Topic: Navi - a message library (6/11 demo)
Replies: 111
Views: 54865

Re: A message system

Two items. 'z' key doesn't allow you to break out of a time delay line (e.g. s[2]). I find that if you replace: if cfg.textsh then -- add character shadow (if desired) lg.setColor( color.shadow) lg.print( self.s:sub( 1, nc ), x + self.x + 1, y + self.y + 1) end with local sh = 0.1 if cfg.textsh then...
by Ref
Wed May 30, 2012 4:38 pm
Forum: Libraries and Tools
Topic: Navi - a message library (6/11 demo)
Replies: 111
Views: 54865

Re: A message system

Very interesting project. Afraid I'm not too good at explainations so just created a temporary 'LOVE' to show what I'm suggesting. All changes are commented. Just thought that the window location should be more easily modified and that it's size should reflect what is being displayed. Got the width ...
by Ref
Mon May 28, 2012 7:54 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 328
Views: 540982

Re: Share a Shader!

Just a varient of vrid's metaballs.
Don't really know how you would use it in a game.
Leave that up to the more eventuresome. :joker:
Best
by Ref
Sat May 26, 2012 9:30 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 328
Views: 540982

Re: Share a Shader!

Oh no! Another shader.
Just a cross between 'tunnel' and 'shockwave'.
For what it's worth.
Played with meatballs(metaballs) but still haven't got complete control over it.
Are there other hidden features in GLSL?
by Ref
Thu May 24, 2012 3:17 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 328
Views: 540982

Re: Share a Shader!

Hi! Two quick questions. Has anyone used 'kernels' with PixelEffect(is it possible)? The IM library has: image, error = im.FileImageLoad(filename) r,g,b,a = image[0],image[1],image[2],image[3] Does Love have a similiar way to get the red, green, blue & alpha channels. I know about: r,g,b,a = lov...
by Ref
Wed May 23, 2012 4:06 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 328
Views: 540982

Re: Share a Shader!

Ok!
Just another (not too bright) example of PixelEffect.
Falls into the pigless 8 second category.
If you get tired of seeing random spots before your eyes, just hit 'r' and arrow keys & 'a'/'s' keys are available.
Still struggling with syntax for GLSL effects but coming slowly.
Best