Search found 19 matches

by Snackrilege
Sat Sep 13, 2014 1:35 am
Forum: Support and Development
Topic: A quick error I just cant find
Replies: 5
Views: 1905

Re: A quick error I just cant find

Whoops, sorry to leave you hanging!

I just ran the code and was not stopped by the compiler. It displayed a red rectangle in the top right corner of a black screen.

Keep up the good fight, my friend, I know how painful it is to have to debug your debugger. Probably the worst experience in coding.
by Snackrilege
Sat Sep 13, 2014 12:13 am
Forum: Support and Development
Topic: A quick error I just cant find
Replies: 5
Views: 1905

Re: A quick error I just cant find

There is almost certainly no end of file error in that player code... you're certain you posted all of it ( even comments, etc) ?
by Snackrilege
Fri Sep 12, 2014 11:27 pm
Forum: Support and Development
Topic: [SOLVED] Simple Physics help.
Replies: 3
Views: 1717

Re: Simple Physics help.

Hey there, welcome! I'm pretty new here myself. I've gotten pretty proficient with love's physics system by now, and I've done some homebrewed physics in FlashPunk before, so I'll try to help you out. My first thought is, for your own sanity, you should separate the collision detection code from the...
by Snackrilege
Thu Sep 11, 2014 6:58 pm
Forum: Support and Development
Topic: Good utility libraries for love.physics? I'm sick of trig :p
Replies: 3
Views: 1504

Re: Good utility libraries for love.physics? I'm sick of tri

thanks for the offer, mate!

I've implemented all the functions I mentioned up there while I was waiting, but I would still be happy to see any libraries for these kinds of common operations. I'm all about collaboration :D
by Snackrilege
Thu Sep 11, 2014 5:05 pm
Forum: Support and Development
Topic: Good utility libraries for love.physics? I'm sick of trig :p
Replies: 3
Views: 1504

Good utility libraries for love.physics? I'm sick of trig :p

So, basic things like "angleTo(fixture1, fixture2)" or "angleToXYcomponents(angle)" and "XYcomponentsToAngle(vx,vy)"

Things that dont seem to be included anywhere in love that make life easier.

I can do it myself, but I'd rather stand on the shoulders of giants, naw mean?
by Snackrilege
Wed Sep 10, 2014 9:58 pm
Forum: Support and Development
Topic: Help me design a Singleton Mixin for middleclass?
Replies: 4
Views: 1155

Re: Help me design a Singleton Mixin for middleclass?

ahh, excellent. The other benefit to singletons is lazy instantiation. That is to say, I can call it from anywhere as something like local camera = Camera:getInstance() In order to get the benefits of lazy instantiation, would this be a viable modification to your code? function Singleton:included(t...
by Snackrilege
Wed Sep 10, 2014 9:13 pm
Forum: Support and Development
Topic: Help me design a Singleton Mixin for middleclass?
Replies: 4
Views: 1155

Help me design a Singleton Mixin for middleclass?

Hey all. I want to make a singleton mixin for all my singleton needs! Here's what I've got so far - local class = require 'middleclass' Singleton = {} function Singleton:getInstance(...) if not self.class._instance then self.class._instance = self.class:new(unpack(arg)) end return self.class._instan...
by Snackrilege
Wed Sep 10, 2014 1:39 am
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 162753

Re: "Questions that don't deserve their own thread" thread

Is there a way to make a rectangle only expand in a single direction on a given axis instead of it expanding in both directions? The same difficulty happens when you are drawing rectangle shaped bodies in love.physics. I solved the problem by only using the polygon function and manually creating a ...
by Snackrilege
Tue Sep 09, 2014 11:59 pm
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 162753

Re: "Questions that don't deserve their own thread" thread

Can I get someone to clear up some wording on the wiki for me? I can't sort this out... it's from the [wiki]Fixture:setFilterData[/wiki] page on the wiki - If two fixtures are in the same group they either always collide if the group is positive, or never collide if it's negative. Is the group zero ...
by Snackrilege
Tue Sep 09, 2014 9:14 pm
Forum: Support and Development
Topic: Gentle Error Handling - play sound effect when image absent
Replies: 4
Views: 2045

Re: Gentle Error Handling - play sound effect when image abs

yep. they sure did get me with that gotcha. Way to diagnose, Slime.