Search found 40 matches

by pancakepalace
Wed Sep 21, 2011 8:05 pm
Forum: Support and Development
Topic: Is there a way to play sounds in reverse?
Replies: 2
Views: 1546

Is there a way to play sounds in reverse?

Is there? I can't seem to find that in the docs.
by pancakepalace
Wed Sep 21, 2011 7:36 pm
Forum: A Whiff of Steam
Topic: "A Whiff of Steam" story contest - and the winner is....
Replies: 32
Views: 160110

Re: "A Whiff of Steam" story contest - and the winner is....

I'm way late for the party, but I read the stories. All interesting. My only worry is that Robin's story resembles the story of the Bourne Identity. Had I arrived earlier, I would have submitted something myself, if only to practice my plot creation!
by pancakepalace
Wed Sep 21, 2011 7:18 pm
Forum: Libraries and Tools
Topic: Snippet for dumping tables when testing
Replies: 14
Views: 7828

Re: Snippet for dumping tables when testing

That sure seems like overkill to add a simple feature to a very simple function used only in debugging. Looking at my function, I'm wondering if I really need those 'local' keywords at the beginning to make the variables local. I remember reading that function arguments were always local, except for...
by pancakepalace
Wed Sep 21, 2011 5:21 pm
Forum: Libraries and Tools
Topic: Snippet for dumping tables when testing
Replies: 14
Views: 7828

Re: Snippet for dumping tables when testing

Thanks for the heads up Robin. This is just a quick function for debugging, so I won't go that far! I'd rather spend time making games to debug than diving in to a full fledge debugger!

NOTE: Corrected a bug in the snippet in case you downloaded it early than this post.
by pancakepalace
Wed Sep 21, 2011 5:12 pm
Forum: Libraries and Tools
Topic: Snippet for dumping tables when testing
Replies: 14
Views: 7828

Re: Snippet for dumping tables when testing

Unfortunately string.dump changes the function into binary code which is not really human readable. What would have been great would have been to change this: ThisIsAFunction = function(x) return x end into this: ThisIsAHumanReadableString = "function(x) return x end" NOTE: Iv'e modified m...
by pancakepalace
Wed Sep 21, 2011 4:31 pm
Forum: Libraries and Tools
Topic: Snippet for dumping tables when testing
Replies: 14
Views: 7828

Snippet for dumping tables when testing

Hi guys and girls, I was having difficulty testing my apps without being able to inspect the contents of a table by printing it on the screen like var_dump does in PHP. I pulled my sleeves, poured a cup of coffee, and coded this little snippet. If you have any suggestions for improvements, that woul...
by pancakepalace
Sat Aug 27, 2011 7:20 pm
Forum: Support and Development
Topic: How to use contact objects in love.physics
Replies: 3
Views: 1545

Re: How to use contact objects in love.physics

Thanks a lot. That clears it up.
by pancakepalace
Sat Aug 27, 2011 4:49 pm
Forum: Support and Development
Topic: How to use contact objects in love.physics
Replies: 3
Views: 1545

How to use contact objects in love.physics

Does anyone know how to use contact objects in the physics library? I'm stumped. Every other type of objects be it the worlds, the joints, the bodies, the shapes all have a new method to create them, but I couldn't find this method in the wiki for the contact objects. If you look at this page in the...
by pancakepalace
Sat Aug 27, 2011 12:49 pm
Forum: Support and Development
Topic: Are there any more, like, extensive physics tutorials?
Replies: 5
Views: 5906

Re: Are there any more, like, extensive physics tutorials?

I'm currently working on an editor for box2D in Love. I'll be releasing the first step very soon and that might help you a lot. The first step is just a parser that parses a data set you give it and handles the creation of all your bodies, shapes, and joints. The next step will be to make an editor ...
by pancakepalace
Thu Aug 25, 2011 3:20 pm
Forum: Support and Development
Topic: What module/class structure should I use in this case?
Replies: 4
Views: 3370

Re: What module/class structure should I use in this case?

Thanks for bartbes, I'll definitely look into it. What I want to do is very simple. If you take a look at this code, https://github.com/xenakis/draft/blob/master/circular.lua notice the first function arc(). This is essentially an engine that makes it easy to draw circular shapes. The functions that...