We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionExhibition › plz give critic on my work, 10Qs
Page Index Toggle Pages: 1
plz give critic on my work, 10Qs (Read 993 times)
plz give critic on my work, 10Qs
Apr 22nd, 2009, 2:34am
 
bjcam.com.cn

i did this just now, actually this is just my first completed work with procesing, ya, it's newbie look. anyway, i think somehow got some problem with intersect, i mean it's not that accurate with hitting the ball, plz give suggestion with it, thanks alot!

have a nice day if no comment yet!
Re: plz give critic on my work, 10Qs
Reply #1 - Apr 22nd, 2009, 7:29am
 
Not bad Smiley  Needs a scoreboard

Take a look at a similar program for some ideas / comparisons / example code.

http://processing.org/discourse/yabb2/?num=1239235781
Re: plz give critic on my work, 10Qs
Reply #2 - Apr 22nd, 2009, 9:06am
 
The pad is at the very bottom of the window. It's easy for the mouse to leave the window while trying to catch a ball. If you leave some blank space below where the pad is located, it's going to be easy to control with the mouse.
Re: plz give critic on my work, 10Qs
Reply #3 - Apr 22nd, 2009, 6:35pm
 
Nice first job!
One thing: dist(x1,y1,x2,y2) gives you a distance between two points, which is fine for testing circle collisions but will not be quite right for ball-to-rect collisions.  For that, you need to see if:
a) the ball is below a certain line AND (&&):
b) the ball is within the left and right x-limits of the paddle/catcher

I put a similar progam here with source:
http://benhem.com/games/brix

--Ben
Re: plz give critic on my work, 10Qs
Reply #4 - Apr 22nd, 2009, 10:12pm
 
A big thanks for all the replying, and i'm studying your recommendations from you guy now, thanks again!
Smiley
Re: plz give critic on my work, 10Qs
Reply #5 - Apr 22nd, 2009, 10:51pm
 
ben_hem wrote on Apr 22nd, 2009, 6:35pm:
Nice first job!
One thing: dist(x1,y1,x2,y2) gives you a distance between two points, which is fine for testing circle collisions but will not be quite right for ball-to-rect collisions.  For that, you need to see if:
a) the ball is below a certain line AND (&&):
b) the ball is within the left and right x-limits of the paddle/catcher

I put a similar progam here with source:

--Ben


Yes, Ban

i realized that it does not work well on collisions between a circle and rectangle. can you give me more thought on how to enhance it up, if you are available thanks for your note, anyway Smiley



Page Index Toggle Pages: 1