Using HadronCollider and images == the big bang

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
legendman3
Citizen
Posts: 68
Joined: Sun Jan 22, 2012 8:29 pm

Using HadronCollider and images == the big bang

Post by legendman3 »

Ok so I am doing a new project now and i am trying use HadronCollider to check and see if two images are colliding. Now I create two seperate collider rectangles and two seperate images. Now if there is some easy way to parent a colliding rectangle to a image then by all means tell me. Because so far all i have is this:



I have no clue how that is happening so i will attach the .love so you can see it in its pure (non laggy) form.

Im a busy beaver tonight arent I?
Attachments
game.love
(60.96 KiB) Downloaded 62 times
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: Using HadronCollider and images == the big bang

Post by tentus »

I don't even know where to start with this program.

Actually, yes I do... I recommend you make sure your caps are correct. HardonCollider does not equal hardoncollider.
Kurosuke needs beta testers
User avatar
legendman3
Citizen
Posts: 68
Joined: Sun Jan 22, 2012 8:29 pm

Re: Using HadronCollider and images == the big bang

Post by legendman3 »

That doesnt really do anything. :P
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: Using HadronCollider and images == the big bang

Post by TechnoCat »

legendman3 wrote:That doesnt really do anything. :P
Run your .love with the incorrect caps and say that.

All of your 3142 cakes are colliding with each other. This program is essentially drawing 3142 frames, one for each cake and then stopping. I'm guessing you wanted one cake out at a time. And then on each cake grabbed show the next cake.

Good luck on your reddit game jam submission.
User avatar
legendman3
Citizen
Posts: 68
Joined: Sun Jan 22, 2012 8:29 pm

Re: Using HadronCollider and images == the big bang

Post by legendman3 »

TechnoCat wrote:
legendman3 wrote:That doesnt really do anything. :P
Run your .love with the incorrect caps and say that.

All of your 3142 cakes are colliding with each other. This program is essentially drawing 3142 frames, one for each cake and then stopping. I'm guessing you wanted one cake out at a time. And then on each cake grabbed show the next cake.

Good luck on your reddit game jam submission.
Haha. Thanks. :P Now all i need to do is get the collision working.
User avatar
MarekkPie
Inner party member
Posts: 587
Joined: Wed Dec 28, 2011 4:48 pm
Contact:

Re: Using HadronCollider and images == the big bang

Post by MarekkPie »

Could barely tell what your game was supposed to do from the video, but if you DO plan on having a crazy amount of objects:

[cough] https://github.com/mkosler/LoveHash [/cough]
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: Using HadronCollider and images == the big bang

Post by tentus »

MarekkPie wrote:Could barely tell what your game was supposed to do from the video, but if you DO plan on having a crazy amount of objects:

[cough] https://github.com/mkosler/LoveHash [/cough]
HardonCollider has spatial hashing built into it. Adding another lib would only break things and slow it down.
Last edited by tentus on Tue Jan 31, 2012 6:31 pm, edited 1 time in total.
Kurosuke needs beta testers
User avatar
MarekkPie
Inner party member
Posts: 587
Joined: Wed Dec 28, 2011 4:48 pm
Contact:

Re: Using HadronCollider and images == the big bang

Post by MarekkPie »

Bummer.
User avatar
legendman3
Citizen
Posts: 68
Joined: Sun Jan 22, 2012 8:29 pm

Re: Using HadronCollider and images == the big bang

Post by legendman3 »

No its not a crazy amount of things at one time. And the video sucks because my computer is slow.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests