Computer Science Canada Air Hockey |
Author: | ClayWall [ Fri Jan 14, 2005 11:35 am ] |
Post subject: | Air Hockey |
My grade 10 final project. I know the physics could be better. Also there could be music but I couldn't upload it. Any help or changes would be awesome. |
Author: | zylum [ Sat Jan 15, 2005 11:36 am ] | ||
Post subject: | |||
looks very well done and clean... a few problems though. the balls dont bounce off each other properly, and the time goes by way to slow... it says each round lasts a minute but its more like 3. try using something like:
also having to refresh everytime someone scores is annoying... other than those 3 things, its very well done |
Author: | Tony [ Sat Jan 15, 2005 4:06 pm ] |
Post subject: | |
how about this for a project? |
Author: | zylum [ Sat Jan 15, 2005 7:00 pm ] |
Post subject: | |
that's cool though it starts to suck around 2 minutes into the video. |
Author: | Tony [ Sat Jan 15, 2005 11:49 pm ] |
Post subject: | |
yeah, it's not very good... the logic bottlenecks in webcam's capture speed and a bunch of other places... though it's cool anyways |
Author: | ClayWall [ Mon Jan 17, 2005 9:48 am ] |
Post subject: | |
Here's Air Hockey again with faster time. I didn't do it the way you suggested zelum because I couldn't figure out how to work it in, but change it to work that way and repost it if you want. |
Author: | zomg [ Fri Jan 21, 2005 1:59 pm ] |
Post subject: | |
wow i like it! nice program good colision detection, and runs smooth as a whistle(lack of a better term) |
Author: | ClayWall [ Tue Jan 25, 2005 2:31 pm ] |
Post subject: | |
Hey thanks, I'll keep working on it to try and make it even better. If there's any ideas I'd like to know. |
Author: | ste_louis26 [ Fri Jan 28, 2005 3:45 pm ] |
Post subject: | |
awsome game but can u actualy win? In the future try to tone down the AI - its invincible! |
Author: | basketball4ever [ Fri Jan 28, 2005 3:58 pm ] |
Post subject: | |
i found the game really good although... u can only go at a certain angle either towards the top or towards the bottom when hitting the puck... this lowers nearly all chances of scoring... theres like only 2 spots u can actually hit it right... into a wall and in... i think the game should be faster.... that makes it easier to score, harder to defend |
Author: | ssr [ Mon Jan 31, 2005 8:52 pm ] |
Post subject: | |
I like teh game GJ but use whatdotcolor to detect collusions instead 'cause sometimes, the puck turns before teh computer or me even hit it. But ya nice game btw just our of curiousity, what did u get on teh project? |
Author: | Cervantes [ Wed Feb 02, 2005 8:54 am ] |
Post subject: | |
ssr wrote: but use whatdotcolor to detect collusions instead
No! Using the radii of the two circles is the way to go. |
Author: | Bacchus [ Wed Feb 02, 2005 11:42 am ] |
Post subject: | |
im guessing the puck turns b4 it hits u or the comp bc if the speed of it is going to fast, when you add the vx and the vy to the puck it would have gone thru the player, so it changes it b4 that happens |
Author: | ssr [ Wed Feb 02, 2005 12:05 pm ] |
Post subject: | |
I like whatdotcolor better 'cause its easier.. I dont think its the speed of the puck, 'cause I changed the speed, and it still happens sometimes |
Author: | Bacchus [ Wed Feb 02, 2005 12:23 pm ] |
Post subject: | |
ya whatdotcolor may be easier, but not as good. using ditance you can find out if they hit at an angle, its kinda hard to do a permimeter check with watdotcolor |
Author: | person [ Wed Feb 02, 2005 5:52 pm ] |
Post subject: | |
Quote: awsome game but can u actualy win? In the future try to tone down the AI - its invincible!
of course u can win!! i won 2/3 times really nice game, but sometimes the puck goes right through me |
Author: | ClayWall [ Tue Feb 22, 2005 5:45 pm ] |
Post subject: | |
I'm sorry I have not replied for a while, it's because semester 2 has started I don't have any computer classes. To answer some posts ... Quote: i think the game should be faster.... that makes it easier to score, harder to defend
It is open source and you should be able to change the variables changeX and changeY to make it go faster. Quote: just our of curiousity, what did u get on teh project?
I got around an 85% but I'll check and re-post. Quote: but use whatdotcolor to detect collusions instead
When I first made it in grade 10 I did use whatdotcolor but changed to see the difference and make the code look better, though it may makes no difference. Quote: really nice game, but sometimes the puck goes right through me
That's why I put in the reset button but I wish that wouldn't happen too. |