Search found 30 matches

by Raylin
Wed Jun 15, 2016 1:02 pm
Forum: General
Topic: Snaps and Linux distribution
Replies: 8
Views: 5613

Snaps and Linux distribution

So, Snaps have hit the scene. For those who dunno what I'm talking about, see this. tl;dr: Snaps are universal distributions of Linux applications. With that said, can we finally explore the possibilities of LOVE - Linux distribution? Love to hear your thoughts on this. :awesome:
by Raylin
Mon Feb 11, 2013 1:30 am
Forum: Support and Development
Topic: Ternary Operator
Replies: 7
Views: 6900

Re: Ternary Operator

Thanks, guys. Robin's answer pretty much sealed the deal. :)
by Raylin
Sun Feb 10, 2013 6:50 pm
Forum: Support and Development
Topic: Ternary Operator
Replies: 7
Views: 6900

Re: Ternary Operator

I'm trying to emulate the same functionality that the question mark ((test)?a:b) would give.
by Raylin
Sun Feb 10, 2013 6:30 pm
Forum: Support and Development
Topic: Ternary Operator
Replies: 7
Views: 6900

Re: Ternary Operator

Saegor wrote:the fact that

Code: Select all

v = v and false or true
don't work as expected ?
Well, it looks like that only returns true or false upon testing v.
I need a operator that can execute a piece of code if something is true else, execute another piece of code.
by Raylin
Sun Feb 10, 2013 5:46 pm
Forum: Support and Development
Topic: Ternary Operator
Replies: 7
Views: 6900

Ternary Operator

Hey, guys.
Does Lua have a quick fix for the ternary operator?
Or do I need to set some metatables for it?
by Raylin
Sat Jan 19, 2013 9:11 pm
Forum: Support and Development
Topic: Click on a image, do complicated stuff.
Replies: 5
Views: 3000

Re: Click on a image, do complicated stuff.

So, I didn't see your reply until now. And I'm still fiddling with my code. What I have now HALF-works. If you click off-tile, it will show. It looks like it's on the wrong axis now... Comments? EDIT: FIXED IT! The only thing left to do is the swapping logic! :D EDIT 2: Latest version uploaded. Havi...
by Raylin
Sat Jan 19, 2013 6:51 pm
Forum: Support and Development
Topic: Click on a image, do complicated stuff.
Replies: 5
Views: 3000

Re: Click on a image, do complicated stuff.

Yes, that is correct.
by Raylin
Sat Jan 19, 2013 4:34 pm
Forum: Support and Development
Topic: Click on a image, do complicated stuff.
Replies: 5
Views: 3000

Click on a image, do complicated stuff.

Hey, guys. I'm working on a game that involves you clicking on an image and then, when another image is clicked, swap it with another one. Where things get complicated is when I try to correlate it to a table that holds the towerData. I'm trying to glean the most efficient way to do it that I will u...
by Raylin
Sun Sep 30, 2012 4:07 am
Forum: Support and Development
Topic: Metatables: The Darkest Magic
Replies: 7
Views: 3272

Re: Metatables: The Darkest Magic

Can someone give me a tutorial on metatables?
by Raylin
Sun Sep 30, 2012 2:33 am
Forum: Support and Development
Topic: Metatables: The Darkest Magic
Replies: 7
Views: 3272

Metatables: The Darkest Magic

Howdy. I'm trying to learn metatables and I would like a really simple breakdown on how reassigning functions work. Like, there is another topic in this forum about changing the love:setFilter property and returning the imageData to something. Could someone break that down or tell me what a metatabl...