Collision Detection

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.
User avatar
Kuromeku
Party member
Posts: 166
Joined: Sun Jul 20, 2008 5:45 pm

Re: Collision Detection

Post by Kuromeku »

Thank you.
User avatar
Xfcn
Citizen
Posts: 65
Joined: Sat Jul 12, 2008 6:53 am

Re: Collision Detection

Post by Xfcn »

That is freakin' sweet. Runs about a constant 90 FPS on my machine (I've only got 1GB of RAM and a 256MB graphics card).
"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Collision Detection

Post by rude »

That app is most likely CPU-bound, though, and would benefit from some partitioning ...
User avatar
Xfcn
Citizen
Posts: 65
Joined: Sat Jul 12, 2008 6:53 am

Re: Collision Detection

Post by Xfcn »

I wish I easily understood half of what's going on in the code. I mean, I'll eventually get what's happening, but I'm horrid and reading other people's code (a strong hint as to why I'm not a professional programmer).
"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
User avatar
Dr. Magnusson
Prole
Posts: 22
Joined: Sun Jul 20, 2008 6:10 pm

Re: Collision Detection

Post by Dr. Magnusson »

How you're able to have that many objects on screen at the same time with that high FPS is beyond me. Could you try and, instead of making them move around randomly, just have them fall down?

I tried it myself but couldn't quite figure your code out.
User avatar
mike
Administrator
Posts: 364
Joined: Mon Feb 04, 2008 5:24 pm

Re: Collision Detection

Post by mike »

Dr. Magnusson: I don't have a solution to your problem (as I am currently posting from work and am useless), but I just wanted to say that your nickname is epic.
Now posting IN STEREO (where available)
User avatar
Dr. Magnusson
Prole
Posts: 22
Joined: Sun Jul 20, 2008 6:10 pm

Re: Collision Detection

Post by Dr. Magnusson »

I take it you're familiar with the Half-Life series :V
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Collision Detection

Post by rude »

Dr. Magnusson wrote:How you're able to have that many objects on screen at the same time with that high FPS is beyond me. Could you try and, instead of making them move around randomly, just have them fall down?
Eh? Around 100 FPS with all the shapes clustered at the bottom. Is that what you meant?
User avatar
Xfcn
Citizen
Posts: 65
Joined: Sat Jul 12, 2008 6:53 am

Re: Collision Detection

Post by Xfcn »

I think he means gravity.
"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Collision Detection

Post by rude »

There is a gravity option, but I added it after I took the screenshot.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Jipjang, Semrush [Bot] and 6 guests