Search found 30 matches
- Wed Jun 15, 2016 1:02 pm
- Forum: General
- Topic: Snaps and Linux distribution
- Replies: 8
- Views: 5781
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.
- Mon Feb 11, 2013 1:30 am
- Forum: Support and Development
- Topic: Ternary Operator
- Replies: 7
- Views: 7071
Re: Ternary Operator
Thanks, guys. Robin's answer pretty much sealed the deal.
- Sun Feb 10, 2013 6:50 pm
- Forum: Support and Development
- Topic: Ternary Operator
- Replies: 7
- Views: 7071
Re: Ternary Operator
I'm trying to emulate the same functionality that the question mark ((test)?a:b) would give.
- Sun Feb 10, 2013 6:30 pm
- Forum: Support and Development
- Topic: Ternary Operator
- Replies: 7
- Views: 7071
Re: Ternary Operator
Well, it looks like that only returns true or false upon testing v.Saegor wrote:the fact thatdon't work as expected ?Code: Select all
v = v and false or true
I need a operator that can execute a piece of code if something is true else, execute another piece of code.
- Sun Feb 10, 2013 5:46 pm
- Forum: Support and Development
- Topic: Ternary Operator
- Replies: 7
- Views: 7071
Ternary Operator
Hey, guys.
Does Lua have a quick fix for the ternary operator?
Or do I need to set some metatables for it?
Does Lua have a quick fix for the ternary operator?
Or do I need to set some metatables for it?
- Sat Jan 19, 2013 9:11 pm
- Forum: Support and Development
- Topic: Click on a image, do complicated stuff.
- Replies: 5
- Views: 3029
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...
- Sat Jan 19, 2013 6:51 pm
- Forum: Support and Development
- Topic: Click on a image, do complicated stuff.
- Replies: 5
- Views: 3029
Re: Click on a image, do complicated stuff.
Yes, that is correct.
- Sat Jan 19, 2013 4:34 pm
- Forum: Support and Development
- Topic: Click on a image, do complicated stuff.
- Replies: 5
- Views: 3029
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...
- Sun Sep 30, 2012 4:07 am
- Forum: Support and Development
- Topic: Metatables: The Darkest Magic
- Replies: 7
- Views: 3377
Re: Metatables: The Darkest Magic
Can someone give me a tutorial on metatables?
- Sun Sep 30, 2012 2:33 am
- Forum: Support and Development
- Topic: Metatables: The Darkest Magic
- Replies: 7
- Views: 3377
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...