Author |
Message |
ClayWall
|
Posted: 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.
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
zylum
|
Posted: Sat Jan 15, 2005 11:36 am Post subject: (No 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:
code: | var t1 : int := 10000
var t2 : int
%other code here
t2 := Time.Elapsed
loop
exit when t1 - (Time.Elapsed - t2) <= 0
locate (1, 1)
put (t1 - (Time.Elapsed - t2)) / 1000
end loop
cls
put 0 |
also having to refresh everytime someone scores is annoying...
other than those 3 things, its very well done
|
|
|
|
|
|
Tony
|
Posted: Sat Jan 15, 2005 4:06 pm Post subject: (No subject) |
|
|
how about this for a project?
|
|
|
|
|
|
zylum
|
Posted: Sat Jan 15, 2005 7:00 pm Post subject: (No subject) |
|
|
that's cool though it starts to suck around 2 minutes into the video.
|
|
|
|
|
|
Tony
|
Posted: Sat Jan 15, 2005 11:49 pm Post subject: (No 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
|
|
|
|
|
|
ClayWall
|
Posted: Mon Jan 17, 2005 9:48 am Post subject: (No 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.
Description: |
|
Download |
Filename: |
Air Hockey.t |
Filesize: |
6.03 KB |
Downloaded: |
228 Time(s) |
|
|
|
|
|
|
zomg
|
Posted: Fri Jan 21, 2005 1:59 pm Post subject: (No subject) |
|
|
wow i like it! nice program good colision detection, and runs smooth as a whistle(lack of a better term)
|
|
|
|
|
|
ClayWall
|
Posted: Tue Jan 25, 2005 2:31 pm Post subject: (No 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.
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
ste_louis26
|
Posted: Fri Jan 28, 2005 3:45 pm Post subject: (No subject) |
|
|
awsome game but can u actualy win? In the future try to tone down the AI - its invincible!
|
|
|
|
|
|
basketball4ever
|
Posted: Fri Jan 28, 2005 3:58 pm Post subject: (No 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
|
|
|
|
|
|
ssr
|
Posted: Mon Jan 31, 2005 8:52 pm Post subject: (No 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?
|
|
|
|
|
|
Cervantes
|
Posted: Wed Feb 02, 2005 8:54 am Post subject: (No subject) |
|
|
ssr wrote: but use whatdotcolor to detect collusions instead
No! Using the radii of the two circles is the way to go.
|
|
|
|
|
|
Bacchus
|
Posted: Wed Feb 02, 2005 11:42 am Post subject: (No 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
|
|
|
|
|
|
ssr
|
Posted: Wed Feb 02, 2005 12:05 pm Post subject: (No 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
|
|
|
|
|
|
Bacchus
|
Posted: Wed Feb 02, 2005 12:23 pm Post subject: (No 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
|
|
|
|
|
|
|